{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 高德API作业"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 准备工作-"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 准备工作\n",
    "import requests,json\n",
    "import pandas as pd\n",
    "key = \"d7c4f8b2b484585de0c319f9b8ca4652\""
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 1、地理编码\n",
    "* 把文字描述的位置转换成地图上的经纬度；地址经过地理编码后，便可在空间中显示各地址的位置，还可识别信息中所包含的模式。\n",
    "> 1.URL：https://restapi.amap.com/v3/geocode/geo?parameters  \n",
    "> 2.请求方式：requests.get()  \n",
    "> 3.请求参数（parameters）：  \n",
    "①.必选：key（高德API密钥）、address（结构化地址）    \n",
    "②.可选：city（指定查询城市）、output（返回数据格式类型：json）"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'count': '1',\n",
       " 'geocodes': [{'formatted_address': '广东省广州市从化区中山大学南方学院',\n",
       "   'country': '中国',\n",
       "   'province': '广东省',\n",
       "   'citycode': '020',\n",
       "   'city': '广州市',\n",
       "   'district': '从化区',\n",
       "   'township': [],\n",
       "   'neighborhood': {'name': [], 'type': []},\n",
       "   'building': {'name': [], 'type': []},\n",
       "   'adcode': '440117',\n",
       "   'street': [],\n",
       "   'number': [],\n",
       "   'location': '113.679287,23.632575',\n",
       "   'level': '兴趣点'}]}"
      ]
     },
     "execution_count": 2,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "from geo import geocode\n",
    "中大南方_geo = geocode(key,\"广东省广州市中山大学南方学院\") \n",
    "中大南方_geo"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 2、逆地理编码\n",
    "* 逆地理服务实际是一个空间查询的过程，通过输入经纬度坐标，查找这个坐标所在的行政区划，所属道路，最近的POI/AOI等。\n",
    "> 1.URL：https://restapi.amap.com/v3/geocode/regeo?parameters  \n",
    "> 2.请求方式：requests.get()  \n",
    "> 3.请求参数（parameters）：  \n",
    "①.必选：key（高德API密钥）、location（经纬度坐标）    \n",
    "②.可选：poitype（返回附近POI类型）、radius（指定查询城市）、extensions（返回结果控制<默认值：base、可选：all>）、batch（批量查询控制：ture、false）、roadlevel（道路等级：0 1）、sig（数字签名）、callback（回调函数）、output（返回数据格式类型：json）、homeorcorp（是否优化POI返回顺序：0 1 2）"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'regeocode': {'addressComponent': {'city': '广州市',\n",
       "   'province': '广东省',\n",
       "   'adcode': '440117',\n",
       "   'district': '从化区',\n",
       "   'towncode': '440117103000',\n",
       "   'streetNumber': {'number': '7号',\n",
       "    'location': '113.678600,23.633329',\n",
       "    'direction': '西北',\n",
       "    'distance': '109.203',\n",
       "    'street': '博学路'},\n",
       "   'country': '中国',\n",
       "   'township': '温泉镇',\n",
       "   'businessAreas': [[]],\n",
       "   'building': {'name': [], 'type': []},\n",
       "   'neighborhood': {'name': [], 'type': []},\n",
       "   'citycode': '020'},\n",
       "  'formatted_address': '广东省广州市从化区温泉镇中山大学南方学院'},\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000'}"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "from geo import re_geocode\n",
    "中大南方_re = re_geocode(key,'113.679287,23.632575')\n",
    "中大南方_re"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 3、路径规划\n",
    "* 提供的步行、公交、驾车查询及行驶距离。\n",
    "* 无需展现地图的场景下，进行线路查询，如以线路结果页形式展现换乘方案；根据返回线路数据，自行开发线路导航。\n",
    "> 1.以HTTP形式提供的步行、公交、驾车查询及行驶距离计算接口，返回JSON 或 XML格式的查询数据。  \n",
    "> 2.URL：（具体见下方）  \n",
    "> 3.请求方式：requests.get()(见.py文件)  \n",
    "> 4.请求参数（parameters）(见.py文件)  "
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 3.1 步行路径规划\n",
    "* 步行路径规划 API 可以规划100KM以内的步行通勤方案，并且返回通勤方案的数据。\n",
    "> URL:https://restapi.amap.com/v3/direction/walking?parameters"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'count': '1',\n",
       " 'geocodes': [{'formatted_address': '广东省广州市从化区龙岗',\n",
       "   'country': '中国',\n",
       "   'province': '广东省',\n",
       "   'citycode': '020',\n",
       "   'city': '广州市',\n",
       "   'district': '从化区',\n",
       "   'township': [],\n",
       "   'neighborhood': {'name': [], 'type': []},\n",
       "   'building': {'name': [], 'type': []},\n",
       "   'adcode': '440117',\n",
       "   'street': [],\n",
       "   'number': [],\n",
       "   'location': '113.668051,23.600869',\n",
       "   'level': '热点商圈'}]}"
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 调用地理编码的函数获取目的地龙岗的地理编码\n",
    "from geo import geocode\n",
    "龙岗_geo = geocode(key,\"广东省广州市从化区龙岗\") \n",
    "龙岗_geo"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'ok',\n",
       " 'infocode': '10000',\n",
       " 'count': '1',\n",
       " 'route': {'origin': '113.679287,23.632575',\n",
       "  'destination': '113.668051,23.600869',\n",
       "  'paths': [{'distance': '4957',\n",
       "    'duration': '3966',\n",
       "    'steps': [{'instruction': '向东步行101米右转',\n",
       "      'orientation': '东',\n",
       "      'road': [],\n",
       "      'distance': '101',\n",
       "      'duration': '81',\n",
       "      'polyline': '113.679592,23.632491;113.680586,23.632522',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '向南步行199米向右前方行走',\n",
       "      'orientation': '南',\n",
       "      'road': [],\n",
       "      'distance': '199',\n",
       "      'duration': '159',\n",
       "      'polyline': '113.680586,23.632522;113.680638,23.63214;113.680668,23.63174;113.680634,23.631541;113.68059,23.631437;113.68059,23.631437;113.680499,23.631241;113.680408,23.631094;113.680208,23.630842',\n",
       "      'action': '向右前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '向西步行159米左转',\n",
       "      'orientation': '西',\n",
       "      'road': [],\n",
       "      'distance': '159',\n",
       "      'duration': '127',\n",
       "      'polyline': '113.680204,23.630838;113.680035,23.630773;113.680035,23.630773;113.679644,23.630638;113.679644,23.630638;113.679362,23.630521;113.679201,23.630473;113.679201,23.630473;113.679032,23.63043;113.679032,23.63043;113.67888,23.630404;113.67888,23.630404;113.678711,23.630365',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '向南步行237米左转',\n",
       "      'orientation': '南',\n",
       "      'road': [],\n",
       "      'distance': '237',\n",
       "      'duration': '190',\n",
       "      'polyline': '113.678711,23.63036;113.678711,23.62934;113.678711,23.62934;113.678711,23.629193;113.678689,23.629084;113.678637,23.629023;113.678424,23.628902;113.678368,23.628841;113.678316,23.628724;113.678294,23.628611;113.678294,23.628611;113.678277,23.628372',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '向南步行498米向右前方行走',\n",
       "      'orientation': '南',\n",
       "      'road': [],\n",
       "      'distance': '498',\n",
       "      'duration': '398',\n",
       "      'polyline': '113.678273,23.628368;113.678572,23.628338;113.678685,23.628307;113.678685,23.628307;113.678845,23.628234;113.679045,23.628073;113.679158,23.627964;113.679158,23.627964;113.679214,23.627869;113.679236,23.627778;113.67928,23.627526;113.679288,23.627322;113.679288,23.627322;113.679253,23.626853;113.679184,23.626623;113.679141,23.626497;113.679002,23.626259;113.678941,23.626176;113.678711,23.625977;113.67862,23.625864;113.678529,23.62572;113.678438,23.625191;113.678429,23.625056;113.678451,23.624939;113.678572,23.624657',\n",
       "      'action': '向右前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '向西南步行722米左转',\n",
       "      'orientation': '西南',\n",
       "      'road': [],\n",
       "      'distance': '722',\n",
       "      'duration': '578',\n",
       "      'polyline': '113.678572,23.624653;113.678559,23.62451;113.678416,23.624323;113.678416,23.624323;113.677582,23.623793;113.676532,23.623346;113.676363,23.623255;113.676272,23.623151;113.676111,23.622834;113.676042,23.622739;113.67579,23.622483;113.675499,23.622279;113.675417,23.622174;113.675386,23.622088;113.675378,23.621836;113.675378,23.621836;113.675391,23.62161;113.675434,23.621476;113.675543,23.621359;113.675764,23.621181;113.675846,23.621089;113.675903,23.620994;113.675907,23.620855;113.675877,23.620725;113.675747,23.620547;113.675599,23.620373;113.675243,23.620013',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '向东南步行412米向右前方行走',\n",
       "      'orientation': '东南',\n",
       "      'road': [],\n",
       "      'distance': '412',\n",
       "      'duration': '330',\n",
       "      'polyline': '113.675239,23.620009;113.67549,23.620013;113.675642,23.619991;113.675773,23.619948;113.676016,23.619796;113.676901,23.619193;113.677261,23.618785;113.678069,23.61783;113.678069,23.61783;113.678181,23.617656',\n",
       "      'action': '向右前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿乌土街向南步行1381米右转',\n",
       "      'orientation': '南',\n",
       "      'road': '乌土街',\n",
       "      'distance': '1381',\n",
       "      'duration': '1105',\n",
       "      'polyline': '113.678181,23.617652;113.678095,23.617205;113.678051,23.617075;113.677973,23.616923;113.677743,23.616558;113.677609,23.616289;113.677391,23.615816;113.677339,23.615668;113.67714,23.614826;113.677049,23.614323;113.676927,23.613359;113.676845,23.612786;113.676602,23.611489;113.676415,23.610438;113.676411,23.610265;113.676411,23.610265;113.676489,23.609848;113.676502,23.609622;113.676493,23.609236;113.676415,23.608746;113.676415,23.608485;113.67648,23.60819;113.67661,23.607734;113.676819,23.606736;113.676862,23.606541;113.676914,23.606415;113.677014,23.606254;113.677535,23.605673',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿乌土街向西南步行165米直行',\n",
       "      'orientation': '西南',\n",
       "      'road': '乌土街',\n",
       "      'distance': '165',\n",
       "      'duration': '132',\n",
       "      'polyline': '113.677535,23.605668;113.676988,23.605373;113.676402,23.605;113.676163,23.604887',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿934县道向西步行118米直行',\n",
       "      'orientation': '西',\n",
       "      'road': '934县道',\n",
       "      'distance': '118',\n",
       "      'duration': '94',\n",
       "      'polyline': '113.676159,23.604883;113.675799,23.604805;113.675508,23.604779;113.675508,23.604779;113.675013,23.60474',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿桃园东路向西南步行674米向右前方行走',\n",
       "      'orientation': '西南',\n",
       "      'road': '桃园东路',\n",
       "      'distance': '674',\n",
       "      'duration': '539',\n",
       "      'polyline': '113.675009,23.604735;113.674236,23.604683;113.673893,23.604618;113.673464,23.604492;113.673464,23.604492;113.67168,23.604006;113.671541,23.603958;113.671411,23.603854;113.671068,23.603472;113.670807,23.603264;113.670807,23.603264;113.670525,23.603073;113.6702,23.602904;113.6702,23.602904;113.670022,23.602795;113.670022,23.602795;113.669909,23.602682;113.669818,23.602517;113.669787,23.602413;113.669718,23.601901',\n",
       "      'action': '向右前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿桃园东路向西南步行247米右转',\n",
       "      'orientation': '西南',\n",
       "      'road': '桃园东路',\n",
       "      'distance': '247',\n",
       "      'duration': '198',\n",
       "      'polyline': '113.669714,23.601897;113.66964,23.601771;113.66964,23.601771;113.669488,23.601558;113.669488,23.601558;113.668789,23.600859;113.668663,23.600768;113.668663,23.600768;113.668442,23.600647;113.667947,23.600417',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿龙泉路向北步行44米到达目的地',\n",
       "      'orientation': '北',\n",
       "      'road': '龙泉路',\n",
       "      'distance': '44',\n",
       "      'duration': '35',\n",
       "      'polyline': '113.667943,23.600412;113.667812,23.600794',\n",
       "      'action': [],\n",
       "      'assistant_action': '到达目的地',\n",
       "      'walk_type': '0'}]}]}}"
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 调用步行规划路径的函数\n",
    "from geo import walking\n",
    "路径_plan = walking(key,\"113.679287,23.632575\",\"113.668051,23.600869\")\n",
    "路径_plan"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 3.2 公交路径规划\n",
    "* 规划综合各类公共（火车、公交、地铁）交通方式的通勤方案，并且返回通勤方案的数据。  \n",
    "> URL：https://restapi.amap.com/v3/direction/transit/integrated?parameters  "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'count': '1',\n",
       " 'geocodes': [{'formatted_address': '广东省广州市从化区龙岗',\n",
       "   'country': '中国',\n",
       "   'province': '广东省',\n",
       "   'citycode': '020',\n",
       "   'city': '广州市',\n",
       "   'district': '从化区',\n",
       "   'township': [],\n",
       "   'neighborhood': {'name': [], 'type': []},\n",
       "   'building': {'name': [], 'type': []},\n",
       "   'adcode': '440117',\n",
       "   'street': [],\n",
       "   'number': [],\n",
       "   'location': '113.668051,23.600869',\n",
       "   'level': '热点商圈'}]}"
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 调用地理编码的函数获取目的地龙岗的地理编码\n",
    "from geo import geocode\n",
    "龙岗_geo = geocode(key,\"广东省广州市从化区龙岗\") \n",
    "龙岗_geo"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'count': '4',\n",
       " 'route': {'origin': '113.679287,23.632575',\n",
       "  'destination': '113.668051,23.600869',\n",
       "  'distance': '4273',\n",
       "  'taxi_cost': '17',\n",
       "  'transits': [{'cost': '4.0',\n",
       "    'duration': '5215',\n",
       "    'nightflag': '0',\n",
       "    'walking_distance': '956',\n",
       "    'distance': '14863',\n",
       "    'missed': '0',\n",
       "    'segments': [{'taxi': [],\n",
       "      'walking': {'origin': '113.679016,23.632349',\n",
       "       'destination': '113.676613,23.631285',\n",
       "       'distance': '513',\n",
       "       'duration': '439',\n",
       "       'steps': [{'instruction': '步行57米右转',\n",
       "         'road': [],\n",
       "         'distance': '57',\n",
       "         'duration': [],\n",
       "         'polyline': '113.679016,23.632349;113.678528,23.632097',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行47米向左前方行走',\n",
       "         'road': [],\n",
       "         'distance': '47',\n",
       "         'duration': [],\n",
       "         'polyline': '113.678528,23.632092;113.678398,23.632166;113.678101,23.632261',\n",
       "         'action': '向左前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行218米左转',\n",
       "         'road': [],\n",
       "         'distance': '218',\n",
       "         'duration': [],\n",
       "         'polyline': '113.678101,23.632261;113.677834,23.632261;113.677551,23.632200;113.677399,23.632179;113.677284,23.632200;113.677177,23.632244;113.677017,23.632357;113.676811,23.632534;113.676582,23.632778;113.676430,23.632904;113.676292,23.632969',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿博学路步行191米到达中大南方学院',\n",
       "         'road': '博学路',\n",
       "         'distance': '191',\n",
       "         'duration': [],\n",
       "         'polyline': '113.676285,23.632969;113.676292,23.632227;113.676338,23.631948;113.676430,23.631676;113.676491,23.631540;113.676613,23.631285',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达中大南方学院'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '中大南方学院',\n",
       "          'id': '900000111141002',\n",
       "          'location': '113.676613,23.631281'},\n",
       "         'arrival_stop': {'name': '宣星路口',\n",
       "          'id': '900000111141010',\n",
       "          'location': '113.628891,23.602587'},\n",
       "         'name': '从15路(中大南方学院--从化汽车站总站)',\n",
       "         'id': '900000111141',\n",
       "         'type': '普通公交线路',\n",
       "         'distance': '9953',\n",
       "         'duration': '2222',\n",
       "         'polyline': '113.676613,23.631281;113.676460,23.631588;113.676430,23.631672;113.676338,23.631945;113.676292,23.632223;113.676285,23.632969;113.676285,23.633560;113.676300,23.633738;113.676331,23.633875;113.676399,23.634016;113.676460,23.634111;113.676521,23.634193;113.676781,23.634409;113.676857,23.634357;113.676933,23.634340;113.677032,23.634354;113.677094,23.634396;113.677139,23.634459;113.677147,23.634535;113.677139,23.634600;113.677086,23.634663;113.677032,23.634701;113.676918,23.634718;113.676857,23.634701;113.676788,23.634657;113.675262,23.636129;113.675156,23.636263;113.675026,23.636467;113.674973,23.636566;113.674957,23.636702;113.674957,23.636845;113.674995,23.636995;113.675377,23.637886;113.675430,23.638042;113.675522,23.638659;113.675529,23.638998;113.675514,23.639132;113.675446,23.639311;113.675331,23.639582;113.675102,23.640036;113.675003,23.640186;113.674309,23.641024;113.673347,23.642139;113.672981,23.642536;113.672935,23.642578;113.672173,23.643307;113.671707,23.643766;113.671432,23.644045;113.673103,23.644968;113.674362,23.645651;113.675461,23.646276;113.675964,23.646635;113.676407,23.647018;113.676376,23.647089;113.675964,23.646744;113.675735,23.646566;113.675468,23.646385;113.675095,23.646172;113.673004,23.645004;113.669968,23.643330;113.669167,23.642881;113.668770,23.642673;113.668594,23.642578;113.667007,23.641693;113.666145,23.641171;113.665314,23.640564;113.665253,23.640511;113.665016,23.640301;113.664772,23.640064;113.664551,23.639812;113.664406,23.639662;113.664207,23.639400;113.663925,23.639021;113.663574,23.638451;113.663361,23.638020;113.662323,23.635933;113.661949,23.635181;113.661461,23.634266;113.661224,23.633898;113.660843,23.633383;113.660683,23.633192;113.660248,23.632704;113.659721,23.632172;113.659370,23.631880;113.659256,23.631794;113.658989,23.631588;113.658897,23.631519;113.658211,23.631102;113.657707,23.630760;113.657425,23.630590;113.656944,23.630304;113.656940,23.630304;113.654336,23.628741;113.653850,23.628416;113.653598,23.628225;113.652383,23.627179;113.650165,23.625326;113.650022,23.625221;113.649766,23.625013;113.649731,23.624987;113.649731,23.624983;113.648980,23.624384;113.648611,23.624063;113.647843,23.623442;113.647361,23.623090;113.646780,23.622721;113.646345,23.622465;113.645981,23.622287;113.645595,23.622131;113.645117,23.621992;113.644709,23.621914;113.644640,23.621901;113.644635,23.621901;113.644375,23.621862;113.643255,23.621749;113.642578,23.621667;113.642474,23.621645;113.642027,23.621541;113.641450,23.621354;113.640525,23.621033;113.639332,23.620603;113.639184,23.620543;113.638850,23.620412;113.638433,23.620213;113.638325,23.620156;113.638329,23.620155;113.636047,23.618944;113.635544,23.618668;113.635254,23.618481;113.634750,23.618097;113.634514,23.617891;113.634254,23.617622;113.633980,23.617271;113.633636,23.616779;113.633057,23.615911;113.632957,23.615774;113.632401,23.614927;113.631912,23.614172;113.631660,23.613710;113.631432,23.613142;113.631287,23.612659;113.630905,23.611076;113.630844,23.610802;113.630844,23.610798;113.630768,23.610516;113.630661,23.610060;113.630569,23.609705;113.630554,23.609617;113.630501,23.609388;113.630119,23.607822;113.629776,23.606388;113.629395,23.604740;113.628891,23.602587',\n",
       "         'bustimetag': '0',\n",
       "         'start_time': '0900',\n",
       "         'end_time': '1800',\n",
       "         'via_num': '7',\n",
       "         'via_stops': [{'name': '卫东',\n",
       "           'id': '900000111141003',\n",
       "           'location': '113.671707,23.643766'},\n",
       "          {'name': '交警温泉中队',\n",
       "           'id': '900000111141029',\n",
       "           'location': '113.656944,23.630304'},\n",
       "          {'name': '冲口',\n",
       "           'id': '900000111141022',\n",
       "           'location': '113.649731,23.624987'},\n",
       "          {'name': '牛步迳',\n",
       "           'id': '900000111141006',\n",
       "           'location': '113.644640,23.621901'},\n",
       "          {'name': '华辉度假村',\n",
       "           'id': '900000111141023',\n",
       "           'location': '113.638325,23.620156'},\n",
       "          {'name': '温泉镇政府',\n",
       "           'id': '900000111141008',\n",
       "           'location': '113.632957,23.615774'},\n",
       "          {'name': '云星村',\n",
       "           'id': '900000111141024',\n",
       "           'location': '113.630844,23.610802'}]}]},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.628891,23.602587',\n",
       "       'destination': '113.628723,23.601263',\n",
       "       'distance': '263',\n",
       "       'duration': '225',\n",
       "       'steps': [{'instruction': '沿温泉大道步行52米右转',\n",
       "         'road': '温泉大道',\n",
       "         'distance': '52',\n",
       "         'duration': [],\n",
       "         'polyline': '113.628891,23.602587;113.628998,23.603046',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行13米右转',\n",
       "         'road': [],\n",
       "         'distance': '13',\n",
       "         'duration': [],\n",
       "         'polyline': '113.629005,23.603046;113.629120,23.603025',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿温泉大道步行198米到达宣星路口',\n",
       "         'road': '温泉大道',\n",
       "         'distance': '198',\n",
       "         'duration': [],\n",
       "         'polyline': '113.629120,23.603022;113.628906,23.602083;113.628815,23.601658;113.628723,23.601263',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达宣星路口'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '宣星路口',\n",
       "          'id': '900000111131022',\n",
       "          'location': '113.628720,23.601263'},\n",
       "         'arrival_stop': {'name': '教师村',\n",
       "          'id': '900000111131041',\n",
       "          'location': '113.666658,23.601437'},\n",
       "         'name': '从14路(从化汽车站总站--高坣总站)',\n",
       "         'id': '900000111131',\n",
       "         'type': '普通公交线路',\n",
       "         'distance': '3954',\n",
       "         'duration': '2174',\n",
       "         'polyline': '113.628720,23.601263;113.628720,23.601259;113.628811,23.601658;113.629280,23.601780;113.630113,23.601445;113.630365,23.601354;113.632248,23.600681;113.633785,23.600347;113.635725,23.599957;113.636810,23.599731;113.637335,23.599657;113.638103,23.599596;113.638542,23.599579;113.639266,23.599588;113.639427,23.599592;113.642270,23.599570;113.642578,23.599570;113.643043,23.599622;113.643294,23.599653;113.643290,23.599653;113.643581,23.599688;113.643624,23.599661;113.643911,23.599657;113.644232,23.599605;113.644449,23.599614;113.645451,23.599935;113.646454,23.600278;113.646589,23.600347;113.646658,23.600417;113.646931,23.600595;113.649835,23.601749;113.649935,23.601797;113.650030,23.601862;113.650937,23.602674;113.651063,23.602752;113.651176,23.602786;113.651367,23.602826;113.651584,23.602847;113.651845,23.602847;113.652001,23.602830;113.652504,23.602708;113.652839,23.602582;113.652999,23.602548;113.653181,23.602543;113.653264,23.602561;113.653659,23.602752;113.653802,23.602799;113.654605,23.602977;113.655122,23.603069;113.655243,23.603077;113.655391,23.603069;113.655799,23.602999;113.656055,23.602934;113.656302,23.602847;113.657083,23.602530;113.657300,23.602461;113.657500,23.602418;113.659041,23.602205;113.659501,23.602144;113.660009,23.602170;113.660386,23.602144;113.661046,23.601988;113.661115,23.601975;113.661115,23.601970;113.661115,23.601975;113.661845,23.601801;113.662044,23.601740;113.662687,23.601458;113.662951,23.601385;113.663980,23.601424;113.664275,23.601445;113.664549,23.601489;113.664596,23.601497;113.664714,23.601497;113.665464,23.601280;113.665655,23.601233;113.665864,23.601202;113.666658,23.601437',\n",
       "         'bustimetag': '0',\n",
       "         'start_time': '0700',\n",
       "         'end_time': '1840',\n",
       "         'via_num': '2',\n",
       "         'via_stops': [{'name': '宣星村委',\n",
       "           'id': '900000111131038',\n",
       "           'location': '113.643294,23.599653'},\n",
       "          {'name': '鸡笼岗路口',\n",
       "           'id': '900000111131040',\n",
       "           'location': '113.661115,23.601975'}]}]},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.666656,23.601437',\n",
       "       'destination': '113.667778,23.600882',\n",
       "       'distance': '180',\n",
       "       'duration': '154',\n",
       "       'steps': [{'instruction': '沿龙宣街步行86米右转',\n",
       "         'road': '龙宣街',\n",
       "         'distance': '86',\n",
       "         'duration': [],\n",
       "         'polyline': '113.666656,23.601437;113.666763,23.601467;113.667221,23.601614;113.667458,23.601688',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿龙泉路步行94米',\n",
       "         'road': '龙泉路',\n",
       "         'distance': '94',\n",
       "         'duration': [],\n",
       "         'polyline': '113.667458,23.601688;113.667564,23.601440;113.667671,23.601164;113.667778,23.600882',\n",
       "         'action': [],\n",
       "         'assistant_action': []}]},\n",
       "      'bus': {'buslines': []},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]},\n",
       "   {'cost': '4.0',\n",
       "    'duration': '6214',\n",
       "    'nightflag': '0',\n",
       "    'walking_distance': '637',\n",
       "    'distance': '24130',\n",
       "    'missed': '0',\n",
       "    'segments': [{'taxi': [],\n",
       "      'walking': {'origin': '113.679016,23.632349',\n",
       "       'destination': '113.676613,23.631285',\n",
       "       'distance': '513',\n",
       "       'duration': '439',\n",
       "       'steps': [{'instruction': '步行57米右转',\n",
       "         'road': [],\n",
       "         'distance': '57',\n",
       "         'duration': [],\n",
       "         'polyline': '113.679016,23.632349;113.678528,23.632097',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行47米向左前方行走',\n",
       "         'road': [],\n",
       "         'distance': '47',\n",
       "         'duration': [],\n",
       "         'polyline': '113.678528,23.632092;113.678398,23.632166;113.678101,23.632261',\n",
       "         'action': '向左前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行218米左转',\n",
       "         'road': [],\n",
       "         'distance': '218',\n",
       "         'duration': [],\n",
       "         'polyline': '113.678101,23.632261;113.677834,23.632261;113.677551,23.632200;113.677399,23.632179;113.677284,23.632200;113.677177,23.632244;113.677017,23.632357;113.676811,23.632534;113.676582,23.632778;113.676430,23.632904;113.676292,23.632969',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿博学路步行191米到达中大南方学院',\n",
       "         'road': '博学路',\n",
       "         'distance': '191',\n",
       "         'duration': [],\n",
       "         'polyline': '113.676285,23.632969;113.676292,23.632227;113.676338,23.631948;113.676430,23.631676;113.676491,23.631540;113.676613,23.631285',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达中大南方学院'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '中大南方学院',\n",
       "          'id': '900000111141002',\n",
       "          'location': '113.676613,23.631281'},\n",
       "         'arrival_stop': {'name': '沙塱村',\n",
       "          'id': '900000111141015',\n",
       "          'location': '113.615547,23.557409'},\n",
       "         'name': '从15路(中大南方学院--从化汽车站总站)',\n",
       "         'id': '900000111141',\n",
       "         'type': '普通公交线路',\n",
       "         'distance': '15234',\n",
       "         'duration': '2854',\n",
       "         'polyline': '113.676613,23.631281;113.676460,23.631588;113.676430,23.631672;113.676338,23.631945;113.676292,23.632223;113.676285,23.632969;113.676285,23.633560;113.676300,23.633738;113.676331,23.633875;113.676399,23.634016;113.676460,23.634111;113.676521,23.634193;113.676781,23.634409;113.676857,23.634357;113.676933,23.634340;113.677032,23.634354;113.677094,23.634396;113.677139,23.634459;113.677147,23.634535;113.677139,23.634600;113.677086,23.634663;113.677032,23.634701;113.676918,23.634718;113.676857,23.634701;113.676788,23.634657;113.675262,23.636129;113.675156,23.636263;113.675026,23.636467;113.674973,23.636566;113.674957,23.636702;113.674957,23.636845;113.674995,23.636995;113.675377,23.637886;113.675430,23.638042;113.675522,23.638659;113.675529,23.638998;113.675514,23.639132;113.675446,23.639311;113.675331,23.639582;113.675102,23.640036;113.675003,23.640186;113.674309,23.641024;113.673347,23.642139;113.672981,23.642536;113.672935,23.642578;113.672173,23.643307;113.671707,23.643766;113.671432,23.644045;113.673103,23.644968;113.674362,23.645651;113.675461,23.646276;113.675964,23.646635;113.676407,23.647018;113.676376,23.647089;113.675964,23.646744;113.675735,23.646566;113.675468,23.646385;113.675095,23.646172;113.673004,23.645004;113.669968,23.643330;113.669167,23.642881;113.668770,23.642673;113.668594,23.642578;113.667007,23.641693;113.666145,23.641171;113.665314,23.640564;113.665253,23.640511;113.665016,23.640301;113.664772,23.640064;113.664551,23.639812;113.664406,23.639662;113.664207,23.639400;113.663925,23.639021;113.663574,23.638451;113.663361,23.638020;113.662323,23.635933;113.661949,23.635181;113.661461,23.634266;113.661224,23.633898;113.660843,23.633383;113.660683,23.633192;113.660248,23.632704;113.659721,23.632172;113.659370,23.631880;113.659256,23.631794;113.658989,23.631588;113.658897,23.631519;113.658211,23.631102;113.657707,23.630760;113.657425,23.630590;113.656944,23.630304;113.656940,23.630304;113.654336,23.628741;113.653850,23.628416;113.653598,23.628225;113.652383,23.627179;113.650165,23.625326;113.650022,23.625221;113.649766,23.625013;113.649731,23.624987;113.649731,23.624983;113.648980,23.624384;113.648611,23.624063;113.647843,23.623442;113.647361,23.623090;113.646780,23.622721;113.646345,23.622465;113.645981,23.622287;113.645595,23.622131;113.645117,23.621992;113.644709,23.621914;113.644640,23.621901;113.644635,23.621901;113.644375,23.621862;113.643255,23.621749;113.642578,23.621667;113.642474,23.621645;113.642027,23.621541;113.641450,23.621354;113.640525,23.621033;113.639332,23.620603;113.639184,23.620543;113.638850,23.620412;113.638433,23.620213;113.638325,23.620156;113.638329,23.620155;113.636047,23.618944;113.635544,23.618668;113.635254,23.618481;113.634750,23.618097;113.634514,23.617891;113.634254,23.617622;113.633980,23.617271;113.633636,23.616779;113.633057,23.615911;113.632957,23.615774;113.632401,23.614927;113.631912,23.614172;113.631660,23.613710;113.631432,23.613142;113.631287,23.612659;113.630905,23.611076;113.630844,23.610802;113.630844,23.610798;113.630768,23.610516;113.630661,23.610060;113.630569,23.609705;113.630554,23.609617;113.630501,23.609388;113.630119,23.607822;113.629776,23.606388;113.629395,23.604740;113.628891,23.602587;113.628479,23.600821;113.628136,23.599293;113.627968,23.598680;113.627953,23.598633;113.627884,23.598433;113.627785,23.598202;113.627632,23.597919;113.627487,23.597683;113.627281,23.597401;113.627037,23.597139;113.626106,23.596230;113.625641,23.595755;113.624992,23.595139;113.624092,23.594326;113.623161,23.593433;113.622879,23.593147;113.622734,23.592981;113.622383,23.592590;113.622055,23.592186;113.621872,23.591957;113.621574,23.591545;113.621292,23.591133;113.621117,23.590864;113.620880,23.590433;113.620735,23.590164;113.620674,23.590054;113.620673,23.590052;113.620603,23.589913;113.619475,23.587643;113.619401,23.587491;113.619401,23.587487;113.619175,23.587040;113.618984,23.586658;113.618893,23.586471;113.618598,23.585868;113.618108,23.584874;113.617930,23.584440;113.617769,23.583928;113.617708,23.583646;113.617630,23.583073;113.617582,23.582478;113.617578,23.582357;113.617578,23.582361;113.617584,23.582365;113.617584,23.582359;113.617554,23.581884;113.617485,23.580811;113.617477,23.580591;113.617485,23.580204;113.617493,23.579849;113.617554,23.579384;113.617668,23.578743;113.617760,23.578316;113.617790,23.578138;113.618042,23.576904;113.618080,23.576723;113.618095,23.576658;113.618118,23.576557;113.618187,23.576189;113.618347,23.575378;113.618416,23.574808;113.618423,23.574497;113.618408,23.574158;113.618286,23.573481;113.618263,23.573381;113.618210,23.573103;113.618210,23.573111;113.618210,23.573120;113.618210,23.573116;113.618172,23.572929;113.618080,23.572432;113.618034,23.572153;113.618011,23.571901;113.617989,23.571444;113.618034,23.570911;113.618187,23.569813;113.618332,23.568825;113.618462,23.567951;113.618652,23.566698;113.618759,23.565947;113.618790,23.565674;113.618828,23.565474;113.618843,23.565365;113.618874,23.565182;113.618896,23.565014;113.618896,23.564964;113.619118,23.563465;113.619171,23.563156;113.619263,23.562523;113.619286,23.562109;113.619263,23.561775;113.619232,23.561602;113.619171,23.561384;113.619011,23.561010;113.618790,23.560673;113.618652,23.560495;113.618149,23.559973;113.617950,23.559765;113.616966,23.558811;113.615730,23.557600;113.615547,23.557409',\n",
       "         'bustimetag': '0',\n",
       "         'start_time': '0900',\n",
       "         'end_time': '1800',\n",
       "         'via_num': '12',\n",
       "         'via_stops': [{'name': '卫东',\n",
       "           'id': '900000111141003',\n",
       "           'location': '113.671707,23.643766'},\n",
       "          {'name': '交警温泉中队',\n",
       "           'id': '900000111141029',\n",
       "           'location': '113.656944,23.630304'},\n",
       "          {'name': '冲口',\n",
       "           'id': '900000111141022',\n",
       "           'location': '113.649731,23.624987'},\n",
       "          {'name': '牛步迳',\n",
       "           'id': '900000111141006',\n",
       "           'location': '113.644640,23.621901'},\n",
       "          {'name': '华辉度假村',\n",
       "           'id': '900000111141023',\n",
       "           'location': '113.638325,23.620156'},\n",
       "          {'name': '温泉镇政府',\n",
       "           'id': '900000111141008',\n",
       "           'location': '113.632957,23.615774'},\n",
       "          {'name': '云星村',\n",
       "           'id': '900000111141024',\n",
       "           'location': '113.630844,23.610802'},\n",
       "          {'name': '宣星路口',\n",
       "           'id': '900000111141010',\n",
       "           'location': '113.628891,23.602587'},\n",
       "          {'name': '新华',\n",
       "           'id': '900000111141011',\n",
       "           'location': '113.620674,23.590054'},\n",
       "          {'name': '水底村',\n",
       "           'id': '900000111141012',\n",
       "           'location': '113.619401,23.587491'},\n",
       "          {'name': '南洋学院',\n",
       "           'id': '900000111141028',\n",
       "           'location': '113.617578,23.582357'},\n",
       "          {'name': '江埔社区',\n",
       "           'id': '900000111141014',\n",
       "           'location': '113.618210,23.573103'}]}]},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.615540,23.557413',\n",
       "       'destination': '113.615593,23.557280',\n",
       "       'distance': '65',\n",
       "       'duration': '55',\n",
       "       'steps': [{'instruction': '沿环市东路步行22米右转',\n",
       "         'road': '环市东路',\n",
       "         'distance': '22',\n",
       "         'duration': [],\n",
       "         'polyline': '113.615540,23.557413;113.615692,23.557562',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行14米右转',\n",
       "         'road': [],\n",
       "         'distance': '14',\n",
       "         'duration': [],\n",
       "         'polyline': '113.615692,23.557562;113.615791,23.557474',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿环市东路步行29米到达沙塱村',\n",
       "         'road': '环市东路',\n",
       "         'distance': '29',\n",
       "         'duration': [],\n",
       "         'polyline': '113.615791,23.557470;113.615593,23.557280',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达沙塱村'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '沙塱村',\n",
       "          'id': '900000111136007',\n",
       "          'location': '113.615593,23.557278'},\n",
       "         'arrival_stop': {'name': '龙岗墟',\n",
       "          'id': '900000111136028',\n",
       "          'location': '113.668082,23.600477'},\n",
       "         'name': '从19路(从化汽车站总站--高坣总站)',\n",
       "         'id': '900000111136',\n",
       "         'type': '普通公交线路',\n",
       "         'distance': '8259',\n",
       "         'duration': '2814',\n",
       "         'polyline': '113.615593,23.557278;113.615590,23.557274;113.617622,23.559266;113.618247,23.559887;113.618555,23.559796;113.618976,23.559753;113.619180,23.559727;113.619423,23.559740;113.619575,23.559753;113.620221,23.559922;113.620603,23.560009;113.621510,23.560221;113.621766,23.560312;113.621936,23.560417;113.622044,23.560521;113.622652,23.561181;113.622995,23.561589;113.623212,23.561766;113.623490,23.561905;113.624427,23.562179;113.624983,23.562361;113.625955,23.562678;113.626250,23.562804;113.626567,23.562999;113.627409,23.563646;113.627565,23.563811;113.627656,23.563945;113.628060,23.564588;113.628260,23.565022;113.628355,23.565169;113.628924,23.565673;113.629058,23.565794;113.629588,23.566454;113.630109,23.566879;113.630451,23.567153;113.630742,23.567383;113.630877,23.567470;113.631085,23.567652;113.631220,23.567830;113.631328,23.568047;113.631367,23.568147;113.631441,23.568333;113.631697,23.568993;113.631793,23.569154;113.631853,23.569219;113.631988,23.569314;113.632374,23.569488;113.632773,23.569631;113.633060,23.569683;113.633247,23.569688;113.633372,23.569679;113.633368,23.569683;113.633485,23.569674;113.633746,23.569614;113.635330,23.569058;113.636593,23.568641;113.636832,23.568581;113.637205,23.568516;113.637426,23.568503;113.637695,23.568524;113.638047,23.568607;113.638390,23.568741;113.638637,23.568867;113.638633,23.568867;113.638898,23.569002;113.640399,23.569818;113.640647,23.569974;113.640859,23.570152;113.640955,23.570256;113.641163,23.570521;113.641428,23.570816;113.641632,23.570998;113.641970,23.571224;113.642322,23.571406;113.642543,23.571497;113.642578,23.571506;113.642930,23.571628;113.643043,23.571649;113.643286,23.571680;113.643503,23.571680;113.643628,23.571680;113.643624,23.571680;113.643967,23.571675;113.644614,23.571671;113.644878,23.571701;113.644970,23.571727;113.645247,23.571862;113.645959,23.572365;113.646198,23.572561;113.646415,23.572773;113.646606,23.572956;113.646788,23.573151;113.647274,23.573637;113.647405,23.573750;113.649232,23.575178;113.649575,23.575447;113.649618,23.575486;113.649618,23.575482;113.649674,23.575530;113.650378,23.576089;113.651076,23.576658;113.651432,23.576936;113.651649,23.577105;113.652001,23.577383;113.652448,23.577700;113.652704,23.577860;113.653177,23.578108;113.653173,23.578108;113.653429,23.578242;113.653676,23.578368;113.654562,23.578845;113.654913,23.579019;113.655091,23.579084;113.656050,23.579310;113.656411,23.579358;113.656589,23.579484;113.656723,23.579640;113.657235,23.580213;113.657292,23.580304;113.657396,23.580612;113.657431,23.580773;113.657483,23.582105;113.657483,23.582231;113.657470,23.582339;113.657431,23.582439;113.657378,23.582539;113.657157,23.582847;113.657066,23.583025;113.656979,23.583255;113.656888,23.583568;113.656871,23.583676;113.656879,23.583780;113.656905,23.583919;113.657062,23.584449;113.657114,23.584566;113.657322,23.584891;113.657478,23.585156;113.657548,23.585365;113.657691,23.586688;113.657743,23.586931;113.657813,23.587135;113.658021,23.587643;113.658099,23.587830;113.658095,23.587830;113.658750,23.589397;113.658819,23.589588;113.659110,23.590226;113.659622,23.591046;113.659826,23.591389;113.659926,23.591589;113.660456,23.592799;113.660543,23.593021;113.660725,23.593594;113.660825,23.593885;113.660903,23.594028;113.660990,23.594167;113.660990,23.594171;113.660990,23.594167;113.661141,23.594410;113.661306,23.594601;113.661554,23.594844;113.662235,23.595430;113.663477,23.596506;113.663737,23.596775;113.664067,23.597135;113.664392,23.597617;113.664549,23.597865;113.664792,23.598234;113.665122,23.598633;113.665252,23.598780;113.665282,23.598819;113.665512,23.599089;113.665777,23.599362;113.665951,23.599501;113.666224,23.599640;113.667322,23.600135;113.667943,23.600412;113.668082,23.600477',\n",
       "         'bustimetag': '4',\n",
       "         'start_time': '0700',\n",
       "         'end_time': '1800',\n",
       "         'via_num': '9',\n",
       "         'via_stops': [{'name': '灌村路口',\n",
       "           'id': '900000111136045',\n",
       "           'location': '113.618976,23.559753'},\n",
       "          {'name': '福上下社1',\n",
       "           'id': '900000111136037',\n",
       "           'location': '113.631367,23.568147'},\n",
       "          {'name': '福上下社2',\n",
       "           'id': '900000111136038',\n",
       "           'location': '113.633372,23.569679'},\n",
       "          {'name': '石海村',\n",
       "           'id': '900000111136039',\n",
       "           'location': '113.638637,23.568867'},\n",
       "          {'name': '石海小学',\n",
       "           'id': '900000111136040',\n",
       "           'location': '113.643628,23.571680'},\n",
       "          {'name': '石海村委',\n",
       "           'id': '900000111136041',\n",
       "           'location': '113.649618,23.575486'},\n",
       "          {'name': '灌村围',\n",
       "           'id': '900000111136042',\n",
       "           'location': '113.653177,23.578108'},\n",
       "          {'name': '中田里',\n",
       "           'id': '900000111136047',\n",
       "           'location': '113.658099,23.587830'},\n",
       "          {'name': '石桥社',\n",
       "           'id': '900000111136043',\n",
       "           'location': '113.660990,23.594167'}]}]},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.668083,23.600477',\n",
       "       'destination': '113.667816,23.600794',\n",
       "       'distance': '59',\n",
       "       'duration': '50',\n",
       "       'steps': [{'instruction': '沿桃园东路步行15米右转',\n",
       "         'road': '桃园东路',\n",
       "         'distance': '15',\n",
       "         'duration': [],\n",
       "         'polyline': '113.668083,23.600477;113.667946,23.600416',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿龙泉路步行44米',\n",
       "         'road': '龙泉路',\n",
       "         'distance': '44',\n",
       "         'duration': [],\n",
       "         'polyline': '113.667946,23.600412;113.667816,23.600794',\n",
       "         'action': [],\n",
       "         'assistant_action': []}]},\n",
       "      'bus': {'buslines': []},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]},\n",
       "   {'cost': '4.0',\n",
       "    'duration': '6034',\n",
       "    'nightflag': '0',\n",
       "    'walking_distance': '2999',\n",
       "    'distance': '14744',\n",
       "    'missed': '0',\n",
       "    'segments': [{'taxi': [],\n",
       "      'walking': {'origin': '113.679588,23.632856',\n",
       "       'destination': '113.677689,23.648291',\n",
       "       'distance': '2553',\n",
       "       'duration': '2188',\n",
       "       'steps': [{'instruction': '步行92米向左前方行走',\n",
       "         'road': [],\n",
       "         'distance': '92',\n",
       "         'duration': [],\n",
       "         'polyline': '113.679588,23.632856;113.679588,23.633173;113.679588,23.633251;113.679619,23.633650;113.679649,23.633690',\n",
       "         'action': '向左前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿博学路步行197米左转',\n",
       "         'road': '博学路',\n",
       "         'distance': '197',\n",
       "         'duration': [],\n",
       "         'polyline': '113.679649,23.633690;113.679550,23.633966;113.679375,23.634357;113.679253,23.634480;113.679062,23.634657;113.678932,23.634762;113.678711,23.634918;113.678635,23.634970;113.678596,23.635031;113.678558,23.635109',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿博学路步行163米右转',\n",
       "         'road': '博学路',\n",
       "         'distance': '163',\n",
       "         'duration': [],\n",
       "         'polyline': '113.678558,23.635109;113.677856,23.635092;113.677612,23.635035;113.677536,23.634996;113.677330,23.634857;113.677086,23.634670',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿博学路步行33米右转',\n",
       "         'road': '博学路',\n",
       "         'distance': '33',\n",
       "         'duration': [],\n",
       "         'polyline': '113.677086,23.634666;113.677025,23.634701;113.676918,23.634718;113.676857,23.634705;113.676796,23.634661',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿中山路步行1265米右转',\n",
       "         'road': '中山路',\n",
       "         'distance': '1265',\n",
       "         'duration': [],\n",
       "         'polyline': '113.676796,23.634657;113.675270,23.636129;113.675156,23.636263;113.675026,23.636467;113.674973,23.636566;113.674957,23.636702;113.674957,23.636845;113.674988,23.636997;113.675385,23.637886;113.675430,23.638042;113.675522,23.638659;113.675522,23.638998;113.675507,23.639132;113.675453,23.639311;113.675331,23.639584;113.675110,23.640036;113.675003,23.640186;113.674316,23.641024;113.673363,23.642139;113.672981,23.642534;113.672173,23.643303;113.671425,23.644045',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿温泉大道步行760米向左前方行走',\n",
       "         'road': '温泉大道',\n",
       "         'distance': '760',\n",
       "         'duration': [],\n",
       "         'polyline': '113.671425,23.644045;113.671638,23.644163;113.673103,23.644970;113.673950,23.645426;113.674370,23.645651;113.675461,23.646276;113.675964,23.646637;113.676407,23.647018;113.677444,23.647964;113.677498,23.648012',\n",
       "         'action': '向左前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行8米右转',\n",
       "         'road': [],\n",
       "         'distance': '8',\n",
       "         'duration': [],\n",
       "         'polyline': '113.677498,23.648012;113.677444,23.648064',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿温泉大道步行35米到达三层路口',\n",
       "         'road': '温泉大道',\n",
       "         'distance': '35',\n",
       "         'duration': [],\n",
       "         'polyline': '113.677444,23.648069;113.677689,23.648291',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达三层路口'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '三层路口',\n",
       "          'id': '900000069254022',\n",
       "          'location': '113.677689,23.648294'},\n",
       "         'arrival_stop': {'name': '宣星路口',\n",
       "          'id': '900000069254026',\n",
       "          'location': '113.628880,23.602548'},\n",
       "         'name': '从12路(吕田客运站总站--从化汽车站总站)',\n",
       "         'id': '900000069254',\n",
       "         'type': '普通公交线路',\n",
       "         'distance': '7791',\n",
       "         'duration': '1301',\n",
       "         'polyline': '113.677689,23.648294;113.677687,23.648290;113.677378,23.648016;113.676372,23.647088;113.675964,23.646745;113.675734,23.646567;113.675464,23.646385;113.675095,23.646172;113.673003,23.645004;113.671771,23.644327;113.671771,23.644323;113.669961,23.643329;113.669162,23.642882;113.668776,23.642674;113.668598,23.642578;113.667001,23.641693;113.666141,23.641172;113.665317,23.640564;113.665252,23.640512;113.665017,23.640299;113.664774,23.640065;113.664549,23.639813;113.664410,23.639661;113.664201,23.639401;113.663928,23.639019;113.663576,23.638451;113.663359,23.638021;113.662322,23.635933;113.661949,23.635182;113.661454,23.634266;113.661224,23.633898;113.660842,23.633381;113.660686,23.633190;113.660252,23.632704;113.659722,23.632170;113.659366,23.631879;113.659258,23.631793;113.658984,23.631589;113.658893,23.631519;113.658212,23.631102;113.657708,23.630760;113.657426,23.630590;113.656984,23.630330;113.656984,23.630326;113.654336,23.628741;113.653850,23.628416;113.653598,23.628225;113.652674,23.627422;113.652370,23.627261;113.652114,23.627062;113.651510,23.626654;113.651363,23.626554;113.651050,23.626315;113.650573,23.625885;113.650091,23.625378;113.649970,23.625269;113.649822,23.625143;113.649766,23.625013;113.648980,23.624384;113.648611,23.624063;113.647843,23.623442;113.647361,23.623090;113.646780,23.622721;113.646345,23.622465;113.645981,23.622287;113.645595,23.622131;113.645117,23.621992;113.644709,23.621914;113.644661,23.621905;113.644669,23.621906;113.644666,23.621905;113.644375,23.621862;113.643255,23.621749;113.642578,23.621667;113.642474,23.621645;113.642027,23.621541;113.641450,23.621354;113.640525,23.621033;113.639332,23.620603;113.639184,23.620543;113.638850,23.620412;113.638472,23.620234;113.638355,23.620174;113.638355,23.620169;113.636046,23.618945;113.635543,23.618668;113.635252,23.618481;113.634748,23.618099;113.634518,23.617891;113.634262,23.617622;113.633980,23.617270;113.633633,23.616780;113.633056,23.615911;113.632917,23.615699;113.632912,23.615699;113.632400,23.614926;113.631910,23.614171;113.631667,23.613711;113.631432,23.613142;113.631293,23.612661;113.630907,23.611076;113.630842,23.610803;113.630825,23.610729;113.630825,23.610725;113.630764,23.610516;113.630660,23.610061;113.630569,23.609705;113.630547,23.609618;113.630495,23.609388;113.630113,23.607821;113.629774,23.606389;113.629392,23.604740;113.628880,23.602548',\n",
       "         'bustimetag': '0',\n",
       "         'start_time': '0630',\n",
       "         'end_time': '1900',\n",
       "         'via_num': '6',\n",
       "         'via_stops': [{'name': '卫东',\n",
       "           'id': '900000069254023',\n",
       "           'location': '113.671771,23.644327'},\n",
       "          {'name': '温泉交警中队',\n",
       "           'id': '900000069254024',\n",
       "           'location': '113.656984,23.630330'},\n",
       "          {'name': '牛步径',\n",
       "           'id': '900000069254041',\n",
       "           'location': '113.644661,23.621905'},\n",
       "          {'name': '华辉度假村',\n",
       "           'id': '900000069254047',\n",
       "           'location': '113.638355,23.620174'},\n",
       "          {'name': '温泉镇政府',\n",
       "           'id': '900000069254025',\n",
       "           'location': '113.632917,23.615699'},\n",
       "          {'name': '云星村站',\n",
       "           'id': '900000069254048',\n",
       "           'location': '113.630825,23.610729'}]},\n",
       "        {'departure_stop': {'name': '三层路口',\n",
       "          'id': '900000069692027',\n",
       "          'location': '113.677597,23.648211'},\n",
       "         'arrival_stop': {'name': '宣星路口',\n",
       "          'id': '900000069692030',\n",
       "          'location': '113.628841,23.602378'},\n",
       "         'name': '从11路(良口客运站总站--从化汽车站总站)',\n",
       "         'id': '900000069692',\n",
       "         'type': '普通公交线路',\n",
       "         'distance': '7672',\n",
       "         'duration': '1300',\n",
       "         'polyline': '113.677597,23.648211;113.677376,23.648016;113.676376,23.647089;113.675964,23.646744;113.675735,23.646566;113.675468,23.646385;113.675095,23.646172;113.674744,23.645973;113.673363,23.645201;113.673004,23.645004;113.671715,23.644299;113.671715,23.644293;113.670654,23.643707;113.669968,23.643330;113.668770,23.642673;113.668594,23.642578;113.667007,23.641693;113.666145,23.641171;113.665314,23.640564;113.665253,23.640511;113.665016,23.640301;113.664772,23.640064;113.664551,23.639812;113.664406,23.639662;113.664207,23.639400;113.663925,23.639021;113.663574,23.638451;113.663361,23.638020;113.662323,23.635933;113.661949,23.635181;113.661461,23.634266;113.661224,23.633898;113.660843,23.633383;113.660683,23.633192;113.660278,23.632727;113.659721,23.632172;113.659370,23.631880;113.659256,23.631794;113.658989,23.631588;113.658897,23.631519;113.658226,23.631102;113.657707,23.630760;113.657425,23.630590;113.657120,23.630413;113.657118,23.630408;113.654336,23.628741;113.653850,23.628416;113.653598,23.628225;113.652674,23.627422;113.650165,23.625326;113.650022,23.625221;113.649766,23.625013;113.648924,23.624327;113.647843,23.623442;113.647361,23.623090;113.646780,23.622721;113.646345,23.622465;113.645981,23.622287;113.645595,23.622131;113.645117,23.621992;113.644709,23.621914;113.644414,23.621871;113.644410,23.621871;113.644375,23.621862;113.643255,23.621749;113.642578,23.621667;113.642474,23.621645;113.642027,23.621541;113.641450,23.621354;113.640525,23.621033;113.639332,23.620603;113.639184,23.620543;113.638850,23.620412;113.638433,23.620213;113.638329,23.620156;113.638325,23.620156;113.636046,23.618945;113.635543,23.618668;113.635252,23.618481;113.634748,23.618099;113.634518,23.617891;113.634262,23.617622;113.633980,23.617270;113.633633,23.616780;113.633056,23.615911;113.632960,23.615768;113.632960,23.615764;113.632400,23.614926;113.631910,23.614171;113.631667,23.613711;113.631432,23.613142;113.631293,23.612661;113.630907,23.611076;113.630842,23.610803;113.630829,23.610747;113.630729,23.610373;113.630660,23.610061;113.630569,23.609705;113.630547,23.609618;113.630495,23.609388;113.630113,23.607821;113.629774,23.606389;113.629392,23.604740;113.628841,23.602378',\n",
       "         'bustimetag': '0',\n",
       "         'start_time': '0630',\n",
       "         'end_time': '1930',\n",
       "         'via_num': '6',\n",
       "         'via_stops': [{'name': '卫东',\n",
       "           'id': '900000069692010',\n",
       "           'location': '113.671715,23.644299'},\n",
       "          {'name': '温泉交警中队',\n",
       "           'id': '900000069692011',\n",
       "           'location': '113.657120,23.630413'},\n",
       "          {'name': '牛步迳',\n",
       "           'id': '900000069692028',\n",
       "           'location': '113.644414,23.621871'},\n",
       "          {'name': '华辉度假村',\n",
       "           'id': '900000069692038',\n",
       "           'location': '113.638329,23.620156'},\n",
       "          {'name': '温泉镇政府',\n",
       "           'id': '900000069692029',\n",
       "           'location': '113.632960,23.615768'},\n",
       "          {'name': '云星村',\n",
       "           'id': '900000069692039',\n",
       "           'location': '113.630829,23.610747'}]}]},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.628883,23.602552',\n",
       "       'destination': '113.628723,23.601267',\n",
       "       'distance': '266',\n",
       "       'duration': '228',\n",
       "       'steps': [{'instruction': '沿温泉大道步行55米右转',\n",
       "         'road': '温泉大道',\n",
       "         'distance': '55',\n",
       "         'duration': [],\n",
       "         'polyline': '113.628883,23.602552;113.628998,23.603046',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行13米右转',\n",
       "         'road': [],\n",
       "         'distance': '13',\n",
       "         'duration': [],\n",
       "         'polyline': '113.629005,23.603046;113.629120,23.603025',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿温泉大道步行198米到达宣星路口',\n",
       "         'road': '温泉大道',\n",
       "         'distance': '198',\n",
       "         'duration': [],\n",
       "         'polyline': '113.629120,23.603022;113.628906,23.602083;113.628815,23.601658;113.628723,23.601267',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达宣星路口'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '宣星路口',\n",
       "          'id': '900000111131022',\n",
       "          'location': '113.628720,23.601263'},\n",
       "         'arrival_stop': {'name': '教师村',\n",
       "          'id': '900000111131041',\n",
       "          'location': '113.666658,23.601437'},\n",
       "         'name': '从14路(从化汽车站总站--高坣总站)',\n",
       "         'id': '900000111131',\n",
       "         'type': '普通公交线路',\n",
       "         'distance': '3954',\n",
       "         'duration': '2163',\n",
       "         'polyline': '113.628720,23.601263;113.628720,23.601259;113.628811,23.601658;113.629280,23.601780;113.630113,23.601445;113.630365,23.601354;113.632248,23.600681;113.633785,23.600347;113.635725,23.599957;113.636810,23.599731;113.637335,23.599657;113.638103,23.599596;113.638542,23.599579;113.639266,23.599588;113.639427,23.599592;113.642270,23.599570;113.642578,23.599570;113.643043,23.599622;113.643294,23.599653;113.643290,23.599653;113.643581,23.599688;113.643624,23.599661;113.643911,23.599657;113.644232,23.599605;113.644449,23.599614;113.645451,23.599935;113.646454,23.600278;113.646589,23.600347;113.646658,23.600417;113.646931,23.600595;113.649835,23.601749;113.649935,23.601797;113.650030,23.601862;113.650937,23.602674;113.651063,23.602752;113.651176,23.602786;113.651367,23.602826;113.651584,23.602847;113.651845,23.602847;113.652001,23.602830;113.652504,23.602708;113.652839,23.602582;113.652999,23.602548;113.653181,23.602543;113.653264,23.602561;113.653659,23.602752;113.653802,23.602799;113.654605,23.602977;113.655122,23.603069;113.655243,23.603077;113.655391,23.603069;113.655799,23.602999;113.656055,23.602934;113.656302,23.602847;113.657083,23.602530;113.657300,23.602461;113.657500,23.602418;113.659041,23.602205;113.659501,23.602144;113.660009,23.602170;113.660386,23.602144;113.661046,23.601988;113.661115,23.601975;113.661115,23.601970;113.661115,23.601975;113.661845,23.601801;113.662044,23.601740;113.662687,23.601458;113.662951,23.601385;113.663980,23.601424;113.664275,23.601445;113.664549,23.601489;113.664596,23.601497;113.664714,23.601497;113.665464,23.601280;113.665655,23.601233;113.665864,23.601202;113.666658,23.601437',\n",
       "         'bustimetag': '0',\n",
       "         'start_time': '0700',\n",
       "         'end_time': '1840',\n",
       "         'via_num': '2',\n",
       "         'via_stops': [{'name': '宣星村委',\n",
       "           'id': '900000111131038',\n",
       "           'location': '113.643294,23.599653'},\n",
       "          {'name': '鸡笼岗路口',\n",
       "           'id': '900000111131040',\n",
       "           'location': '113.661115,23.601975'}]}]},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.666656,23.601437',\n",
       "       'destination': '113.667778,23.600882',\n",
       "       'distance': '180',\n",
       "       'duration': '154',\n",
       "       'steps': [{'instruction': '沿龙宣街步行86米右转',\n",
       "         'road': '龙宣街',\n",
       "         'distance': '86',\n",
       "         'duration': [],\n",
       "         'polyline': '113.666656,23.601437;113.666763,23.601467;113.667221,23.601614;113.667458,23.601688',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿龙泉路步行94米',\n",
       "         'road': '龙泉路',\n",
       "         'distance': '94',\n",
       "         'duration': [],\n",
       "         'polyline': '113.667458,23.601688;113.667564,23.601440;113.667671,23.601164;113.667778,23.600882',\n",
       "         'action': [],\n",
       "         'assistant_action': []}]},\n",
       "      'bus': {'buslines': []},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]},\n",
       "   {'cost': [],\n",
       "    'duration': '4843',\n",
       "    'nightflag': '0',\n",
       "    'walking_distance': '545',\n",
       "    'distance': '17403',\n",
       "    'missed': '1',\n",
       "    'segments': [{'taxi': [],\n",
       "      'walking': {'origin': '113.679016,23.632349',\n",
       "       'destination': '113.676613,23.631285',\n",
       "       'distance': '513',\n",
       "       'duration': '439',\n",
       "       'steps': [{'instruction': '步行57米右转',\n",
       "         'road': [],\n",
       "         'distance': '57',\n",
       "         'duration': [],\n",
       "         'polyline': '113.679016,23.632349;113.678528,23.632097',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行47米向左前方行走',\n",
       "         'road': [],\n",
       "         'distance': '47',\n",
       "         'duration': [],\n",
       "         'polyline': '113.678528,23.632092;113.678398,23.632166;113.678101,23.632261',\n",
       "         'action': '向左前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行218米左转',\n",
       "         'road': [],\n",
       "         'distance': '218',\n",
       "         'duration': [],\n",
       "         'polyline': '113.678101,23.632261;113.677834,23.632261;113.677551,23.632200;113.677399,23.632179;113.677284,23.632200;113.677177,23.632244;113.677017,23.632357;113.676811,23.632534;113.676582,23.632778;113.676430,23.632904;113.676292,23.632969',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿博学路步行191米到达中大南方学院',\n",
       "         'road': '博学路',\n",
       "         'distance': '191',\n",
       "         'duration': [],\n",
       "         'polyline': '113.676285,23.632969;113.676292,23.632227;113.676338,23.631948;113.676430,23.631676;113.676491,23.631540;113.676613,23.631285',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达中大南方学院'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '中大南方学院',\n",
       "          'id': '900000111141002',\n",
       "          'location': '113.676613,23.631281'},\n",
       "         'arrival_stop': {'name': '冲口',\n",
       "          'id': '900000111141022',\n",
       "          'location': '113.649731,23.624987'},\n",
       "         'name': '从15路(中大南方学院--从化汽车站总站)',\n",
       "         'id': '900000111141',\n",
       "         'type': '普通公交线路',\n",
       "         'distance': '6394',\n",
       "         'duration': '1981',\n",
       "         'polyline': '113.676613,23.631281;113.676460,23.631588;113.676430,23.631672;113.676338,23.631945;113.676292,23.632223;113.676285,23.632969;113.676285,23.633560;113.676300,23.633738;113.676331,23.633875;113.676399,23.634016;113.676460,23.634111;113.676521,23.634193;113.676781,23.634409;113.676857,23.634357;113.676933,23.634340;113.677032,23.634354;113.677094,23.634396;113.677139,23.634459;113.677147,23.634535;113.677139,23.634600;113.677086,23.634663;113.677032,23.634701;113.676918,23.634718;113.676857,23.634701;113.676788,23.634657;113.675262,23.636129;113.675156,23.636263;113.675026,23.636467;113.674973,23.636566;113.674957,23.636702;113.674957,23.636845;113.674995,23.636995;113.675377,23.637886;113.675430,23.638042;113.675522,23.638659;113.675529,23.638998;113.675514,23.639132;113.675446,23.639311;113.675331,23.639582;113.675102,23.640036;113.675003,23.640186;113.674309,23.641024;113.673347,23.642139;113.672981,23.642536;113.672935,23.642578;113.672173,23.643307;113.671707,23.643766;113.671432,23.644045;113.673103,23.644968;113.674362,23.645651;113.675461,23.646276;113.675964,23.646635;113.676407,23.647018;113.676376,23.647089;113.675964,23.646744;113.675735,23.646566;113.675468,23.646385;113.675095,23.646172;113.673004,23.645004;113.669968,23.643330;113.669167,23.642881;113.668770,23.642673;113.668594,23.642578;113.667007,23.641693;113.666145,23.641171;113.665314,23.640564;113.665253,23.640511;113.665016,23.640301;113.664772,23.640064;113.664551,23.639812;113.664406,23.639662;113.664207,23.639400;113.663925,23.639021;113.663574,23.638451;113.663361,23.638020;113.662323,23.635933;113.661949,23.635181;113.661461,23.634266;113.661224,23.633898;113.660843,23.633383;113.660683,23.633192;113.660248,23.632704;113.659721,23.632172;113.659370,23.631880;113.659256,23.631794;113.658989,23.631588;113.658897,23.631519;113.658211,23.631102;113.657707,23.630760;113.657425,23.630590;113.656944,23.630304;113.656940,23.630304;113.654336,23.628741;113.653850,23.628416;113.653598,23.628225;113.652383,23.627179;113.650165,23.625326;113.650022,23.625221;113.649766,23.625013;113.649731,23.624987',\n",
       "         'bustimetag': '0',\n",
       "         'start_time': '0900',\n",
       "         'end_time': '1800',\n",
       "         'via_num': '2',\n",
       "         'via_stops': [{'name': '卫东',\n",
       "           'id': '900000111141003',\n",
       "           'location': '113.671707,23.643766'},\n",
       "          {'name': '交警温泉中队',\n",
       "           'id': '900000111141029',\n",
       "           'location': '113.656944,23.630304'}]}]},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': [],\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '冲口',\n",
       "          'id': '900000111218004',\n",
       "          'location': '113.649731,23.624983'},\n",
       "         'arrival_stop': {'name': '龙岗墟',\n",
       "          'id': '900000111218023',\n",
       "          'location': '113.667899,23.600530'},\n",
       "         'name': '从701路(温泉宾馆--南平村委)',\n",
       "         'id': '900000111218',\n",
       "         'type': '微循环公交',\n",
       "         'distance': '10464',\n",
       "         'duration': '2395',\n",
       "         'polyline': '113.649731,23.624983;113.649727,23.624983;113.648980,23.624384;113.648611,23.624063;113.647843,23.623442;113.647361,23.623090;113.646780,23.622721;113.646345,23.622465;113.645981,23.622287;113.645595,23.622131;113.645117,23.621992;113.644709,23.621914;113.644648,23.621901;113.644644,23.621901;113.644375,23.621862;113.643255,23.621749;113.642578,23.621667;113.642474,23.621645;113.642027,23.621541;113.641450,23.621354;113.640525,23.621033;113.639332,23.620603;113.639184,23.620543;113.638850,23.620412;113.638433,23.620213;113.638325,23.620156;113.638329,23.620155;113.638329,23.620159;113.638329,23.620155;113.636047,23.618944;113.635544,23.618668;113.635254,23.618481;113.634750,23.618097;113.634514,23.617891;113.634254,23.617622;113.633980,23.617271;113.633636,23.616779;113.633057,23.615911;113.632965,23.615782;113.632957,23.615778;113.632401,23.614927;113.631912,23.614172;113.631660,23.613710;113.631432,23.613142;113.631287,23.612659;113.630905,23.611076;113.630844,23.610802;113.630844,23.610798;113.630768,23.610516;113.630661,23.610060;113.630569,23.609705;113.630554,23.609617;113.630501,23.609388;113.630119,23.607822;113.629776,23.606388;113.629395,23.604740;113.628891,23.602587;113.628479,23.600821;113.628136,23.599293;113.627968,23.598680;113.627953,23.598633;113.627884,23.598433;113.627785,23.598202;113.627632,23.597919;113.627487,23.597683;113.627281,23.597401;113.627037,23.597139;113.626106,23.596230;113.625641,23.595755;113.624992,23.595139;113.624092,23.594326;113.623161,23.593433;113.622879,23.593147;113.622978,23.593065;113.623573,23.593662;113.627022,23.596935;113.627274,23.597191;113.627449,23.597414;113.627663,23.597729;113.627869,23.598082;113.627975,23.598307;113.628059,23.598547;113.628090,23.598633;113.628212,23.599079;113.628616,23.600807;113.628723,23.601263;113.628720,23.601263;113.628811,23.601658;113.629280,23.601780;113.630113,23.601445;113.630365,23.601354;113.632248,23.600681;113.633785,23.600347;113.635725,23.599957;113.636810,23.599731;113.637335,23.599657;113.638103,23.599596;113.638542,23.599579;113.639266,23.599588;113.639427,23.599592;113.642270,23.599570;113.642578,23.599570;113.643043,23.599622;113.643581,23.599688;113.643624,23.599661;113.643911,23.599657;113.644232,23.599605;113.644449,23.599614;113.645451,23.599935;113.646454,23.600278;113.646589,23.600347;113.646658,23.600417;113.646931,23.600595;113.649835,23.601749;113.649935,23.601797;113.650030,23.601862;113.650937,23.602674;113.651063,23.602752;113.651176,23.602786;113.651367,23.602826;113.651584,23.602847;113.651845,23.602847;113.652001,23.602830;113.652504,23.602708;113.652839,23.602582;113.652999,23.602548;113.653181,23.602543;113.653264,23.602561;113.653659,23.602752;113.653802,23.602799;113.654605,23.602977;113.655122,23.603069;113.655243,23.603077;113.655391,23.603069;113.655799,23.602999;113.656055,23.602934;113.656302,23.602847;113.657083,23.602530;113.657300,23.602461;113.657500,23.602418;113.659041,23.602205;113.659501,23.602144;113.660009,23.602170;113.660386,23.602144;113.661046,23.601988;113.661845,23.601801;113.662044,23.601740;113.662687,23.601458;113.662951,23.601385;113.663980,23.601424;113.664275,23.601445;113.664549,23.601489;113.664596,23.601497;113.664714,23.601497;113.665464,23.601280;113.665655,23.601233;113.665864,23.601202;113.666658,23.601441;113.666662,23.601441;113.666658,23.601441;113.666758,23.601467;113.667001,23.601545;113.667222,23.601615;113.667465,23.601688;113.667773,23.600877;113.667899,23.600530',\n",
       "         'bustimetag': '2',\n",
       "         'start_time': [],\n",
       "         'end_time': [],\n",
       "         'via_num': '7',\n",
       "         'via_stops': [{'name': '牛步迳',\n",
       "           'id': '900000111218005',\n",
       "           'location': '113.644648,23.621901'},\n",
       "          {'name': '华辉度假村',\n",
       "           'id': '900000111218006',\n",
       "           'location': '113.638325,23.620156'},\n",
       "          {'name': '温泉镇政府',\n",
       "           'id': '900000111218007',\n",
       "           'location': '113.632965,23.615782'},\n",
       "          {'name': '云星村',\n",
       "           'id': '900000111218008',\n",
       "           'location': '113.630844,23.610802'},\n",
       "          {'name': '宣星路口',\n",
       "           'id': '900000111218009',\n",
       "           'location': '113.628891,23.602587'},\n",
       "          {'name': '宣星路口(星光五金水电商场)',\n",
       "           'id': '900000111218021',\n",
       "           'location': '113.628723,23.601263'},\n",
       "          {'name': '教师村',\n",
       "           'id': '900000111218022',\n",
       "           'location': '113.666658,23.601441'}]}]},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.667900,23.600529',\n",
       "       'destination': '113.667816,23.600794',\n",
       "       'distance': '31',\n",
       "       'duration': '26',\n",
       "       'steps': [{'instruction': '沿龙泉路步行31米',\n",
       "         'road': '龙泉路',\n",
       "         'distance': '31',\n",
       "         'duration': [],\n",
       "         'polyline': '113.667900,23.600529;113.667816,23.600794',\n",
       "         'action': [],\n",
       "         'assistant_action': []}]},\n",
       "      'bus': {'buslines': []},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]}]}}"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 调用公交规划路径的函数\n",
    "# 调用geo.py文件中的bus和geocode模块\n",
    "from geo import bus,geocode\n",
    "city = \"广州\"\n",
    "公交_plan = bus(key,\"113.679287,23.632575\",\"113.668051,23.600869\",city)\n",
    "公交_plan"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 3.3 驾车路径规划\n",
    "* 规划以小客车、轿车通勤出行的方案，并且返回通勤方案的数据。  \n",
    "> URL：https://restapi.amap.com/v3/direction/driving?parameters  "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'count': '1',\n",
       " 'geocodes': [{'formatted_address': '广东省广州市海珠区财经大学',\n",
       "   'country': '中国',\n",
       "   'province': '广东省',\n",
       "   'citycode': '020',\n",
       "   'city': '广州市',\n",
       "   'district': '海珠区',\n",
       "   'township': [],\n",
       "   'neighborhood': {'name': [], 'type': []},\n",
       "   'building': {'name': [], 'type': []},\n",
       "   'adcode': '440105',\n",
       "   'street': [],\n",
       "   'number': [],\n",
       "   'location': '113.354048,23.090160',\n",
       "   'level': '兴趣点'}]}"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 调用地理编码的函数获取目的地广财的地理编码\n",
    "from geo import geocode\n",
    "广财_geo = geocode(key,\"广东省广州市海珠区广东财经大学\") \n",
    "广财_geo"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'count': '1',\n",
       " 'route': {'origin': '113.679287,23.632575',\n",
       "  'destination': '113.354048,23.090160',\n",
       "  'paths': [{'distance': '83681',\n",
       "    'duration': '5107',\n",
       "    'strategy': '速度最快',\n",
       "    'tolls': '45',\n",
       "    'toll_distance': '77120',\n",
       "    'steps': [{'instruction': '向北行驶122米向左前方行驶',\n",
       "      'orientation': '北',\n",
       "      'distance': '122',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '27',\n",
       "      'polyline': '113.679596,23.632574;113.679596,23.632856;113.679592,23.633173;113.679596,23.633251;113.679627,23.63365;113.679648,23.633689',\n",
       "      'action': '向左前方行驶',\n",
       "      'assistant_action': []},\n",
       "     {'instruction': '沿博学路向北行驶79米向左前方行驶',\n",
       "      'orientation': '北',\n",
       "      'road': '博学路',\n",
       "      'distance': '79',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '20',\n",
       "      'polyline': '113.679648,23.633689;113.679549,23.633967;113.679375,23.634358',\n",
       "      'action': '向左前方行驶',\n",
       "      'assistant_action': []},\n",
       "     {'instruction': '沿博学路向西北行驶118米左转',\n",
       "      'orientation': '西北',\n",
       "      'road': '博学路',\n",
       "      'distance': '118',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '31',\n",
       "      'polyline': '113.679375,23.634358;113.679249,23.634479;113.678932,23.634761;113.678711,23.634918;113.678628,23.63497;113.678594,23.63503;113.678555,23.635109',\n",
       "      'action': '左转',\n",
       "      'assistant_action': []},\n",
       "     {'instruction': '沿博学路向西行驶163米右转',\n",
       "      'orientation': '西',\n",
       "      'road': '博学路',\n",
       "      'distance': '163',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '34',\n",
       "      'polyline': '113.678555,23.635109;113.677856,23.635087;113.677613,23.63503;113.67753,23.634991;113.677326,23.634852;113.677083,23.634661',\n",
       "      'action': '右转',\n",
       "      'assistant_action': []},\n",
       "     {'instruction': '沿博学路向西行驶33米右转',\n",
       "      'orientation': '西',\n",
       "      'road': '博学路',\n",
       "      'distance': '33',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '12',\n",
       "      'polyline': '113.677083,23.634661;113.677027,23.634701;113.676918,23.634718;113.676849,23.634701;113.676788,23.634657',\n",
       "      'action': '右转',\n",
       "      'assistant_action': []},\n",
       "     {'instruction': '沿中山路向西北行驶1.3千米右转',\n",
       "      'orientation': '西北',\n",
       "      'road': '中山路',\n",
       "      'distance': '1265',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '277',\n",
       "      'polyline': '113.676788,23.634657;113.675265,23.636128;113.675152,23.636263;113.675026,23.636467;113.67497,23.636567;113.674957,23.636701;113.674957,23.636845;113.674991,23.636997;113.675378,23.637886;113.67543,23.638043;113.675521,23.638659;113.67553,23.638997;113.675508,23.639132;113.675447,23.63931;113.67533,23.639583;113.675104,23.640035;113.675,23.640187;113.67431,23.641024;113.673355,23.64214;113.672977,23.642535;113.672934,23.642578;113.67217,23.643307;113.671428,23.644045',\n",
       "      'action': '右转',\n",
       "      'assistant_action': []},\n",
       "     {'instruction': '沿温泉大道向东北行驶605米左转调头',\n",
       "      'orientation': '东北',\n",
       "      'road': '温泉大道',\n",
       "      'distance': '605',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '67',\n",
       "      'polyline': '113.671428,23.644045;113.671636,23.644162;113.673103,23.64497;113.673945,23.645425;113.674366,23.645651;113.67546,23.646276;113.675968,23.646636;113.676411,23.647018',\n",
       "      'action': '左转调头',\n",
       "      'assistant_action': []},\n",
       "     {'instruction': '沿温泉大道向西南行驶916米向右前方行驶进入匝道',\n",
       "      'orientation': '西南',\n",
       "      'road': '温泉大道',\n",
       "      'distance': '916',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '57',\n",
       "      'polyline': '113.676367,23.647088;113.675964,23.646745;113.675734,23.646567;113.675464,23.646385;113.675095,23.646172;113.673003,23.645004;113.669961,23.643329;113.669162,23.642882;113.668776,23.642674',\n",
       "      'action': '向右前方行驶',\n",
       "      'assistant_action': '进入匝道'},\n",
       "     {'instruction': '沿G45大广高速入口向西南行驶836米减速行驶到达收费站',\n",
       "      'orientation': '西南',\n",
       "      'road': 'G45大广高速入口',\n",
       "      'distance': '836',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '70',\n",
       "      'polyline': '113.668776,23.642674;113.668546,23.642578;113.668095,23.642387;113.667626,23.64214;113.667461,23.642079;113.667274,23.642036;113.667109,23.642014;113.66694,23.642018;113.666749,23.642049;113.666367,23.642135;113.666181,23.642157;113.666029,23.642157;113.665868,23.642131;113.665716,23.642088;113.665577,23.642023;113.66546,23.641944;113.665352,23.64184;113.665252,23.641719;113.665182,23.641593;113.665122,23.641445;113.665078,23.64125;113.665056,23.641068;113.665052,23.640859;113.665078,23.640616;113.665122,23.640391;113.665178,23.640217;113.66526,23.640017;113.665386,23.639792;113.665512,23.639592;113.665603,23.639479;113.665807,23.63924;113.665972,23.639015;113.666046,23.63888;113.666089,23.638763;113.666102,23.638681;113.666115,23.638568;113.666063,23.637999',\n",
       "      'action': '减速行驶',\n",
       "      'assistant_action': '到达收费站'},\n",
       "     {'instruction': '沿G45大广高速入口向南行驶49米靠左',\n",
       "      'orientation': '南',\n",
       "      'road': 'G45大广高速入口',\n",
       "      'distance': '49',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '49',\n",
       "      'toll_road': 'G45大广高速入口',\n",
       "      'duration': '4',\n",
       "      'polyline': '113.666063,23.637999;113.666033,23.637548',\n",
       "      'action': '靠左',\n",
       "      'assistant_action': []},\n",
       "     {'instruction': '沿G45大广高速入口途径G45大广高速向西南行驶1.7千米直行进入隧道',\n",
       "      'orientation': '西南',\n",
       "      'road': 'G45大广高速入口',\n",
       "      'distance': '1741',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '1741',\n",
       "      'toll_road': 'G45大广高速入口',\n",
       "      'duration': '85',\n",
       "      'polyline': '113.666033,23.637548;113.666046,23.637448;113.666033,23.637361;113.665959,23.637153;113.665864,23.636992;113.665747,23.63684;113.665634,23.636727;113.665477,23.63661;113.665312,23.636515;113.665156,23.63645;113.664944,23.636385;113.664549,23.636293;113.66441,23.636263;113.664232,23.636202;113.664067,23.636115;113.663893,23.636011;113.66375,23.635885;113.663637,23.635764;113.663542,23.635625;113.663459,23.635469;113.663394,23.635304;113.663359,23.63513;113.663338,23.634922;113.66332,23.634488;113.66329,23.634262;113.663234,23.634032;113.663142,23.633763;113.662886,23.633173;113.662847,23.633025;113.662839,23.632934;113.662474,23.632352;113.662118,23.631858;113.66191,23.631589;113.661714,23.63135;113.661419,23.63099;113.661124,23.63066;113.659484,23.628997;113.658724,23.628177;113.658155,23.627509;113.657869,23.627131;113.657565,23.626688;113.657287,23.626241;113.65704,23.625816;113.656667,23.6251',\n",
       "      'action': '直行',\n",
       "      'assistant_action': '进入隧道'},\n",
       "     {'instruction': '沿牛步迳隧道途径温泉流溪河特大桥、G45大广高速向西南行驶8.6千米直行进入隧道',\n",
       "      'orientation': '西南',\n",
       "      'road': '牛步迳隧道',\n",
       "      'distance': '8576',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '8576',\n",
       "      'toll_road': '牛步迳隧道',\n",
       "      'duration': '321',\n",
       "      'polyline': '113.656667,23.6251;113.656471,23.624657;113.65625,23.624128;113.656072,23.623646;113.655859,23.622951;113.655256,23.620833;113.655191,23.620603;113.654931,23.619666;113.654735,23.61898;113.654505,23.618247;113.654327,23.617756;113.65411,23.617218;113.65395,23.616871;113.653663,23.616302;113.653451,23.615911;113.653116,23.615373;113.652635,23.61467;113.652235,23.614162;113.651879,23.613746;113.65145,23.613281;113.650868,23.612717;113.65066,23.612526;113.65036,23.612287;113.649848,23.611866;113.649384,23.611515;113.648976,23.611241;113.648138,23.610738;113.647643,23.610477;113.647044,23.610182;113.64579,23.609618;113.644679,23.609119;113.644227,23.608902;113.643698,23.608624;113.642765,23.608051;113.642578,23.607921;113.642274,23.607717;113.641897,23.607439;113.641445,23.60707;113.640273,23.606033;113.63898,23.604931;113.63849,23.604531;113.638034,23.604193;113.637435,23.60378;113.636949,23.603464;113.636363,23.603121;113.63569,23.602743;113.635048,23.602418;113.634453,23.60214;113.633485,23.601714;113.632682,23.601393;113.630816,23.600686;113.630113,23.60043;113.629258,23.600143;113.62753,23.599579;113.625174,23.59885;113.624475,23.598633;113.622088,23.597899;113.621215,23.597626;113.620603,23.597435;113.608346,23.59362;113.607982,23.593498;113.606762,23.593069;113.605959,23.592756;113.605126,23.592413;113.604297,23.592049;113.60372,23.591775;113.602756,23.591293;113.601957,23.590864;113.601194,23.590434;113.600477,23.59;113.59964,23.589466;113.598872,23.588954;113.598633,23.58878;113.598203,23.588477;113.597092,23.587643;113.596662,23.587322;113.595382,23.586393;113.594839,23.586024;113.594327,23.585707;113.59375,23.585373;113.593168,23.585065;113.59273,23.584844;113.591988,23.58451;113.591411,23.584275;113.589965,23.583819',\n",
       "      'action': '直行',\n",
       "      'assistant_action': '进入隧道'},\n",
       "     {'instruction': '沿明珠隧道途径G45大广高速向西南行驶7.8千米直行进入隧道',\n",
       "      'orientation': '西南',\n",
       "      'road': '明珠隧道',\n",
       "      'distance': '7814',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '7814',\n",
       "      'toll_road': '明珠隧道',\n",
       "      'duration': '301',\n",
       "      'polyline': '113.589965,23.583819;113.589345,23.583633;113.588155,23.583346;113.587431,23.58322;113.586714,23.583112;113.585981,23.583021;113.584974,23.582938;113.583225,23.582826;113.579878,23.582574;113.578507,23.582452;113.577552,23.582326;113.576667,23.582201;113.576658,23.582201;113.575933,23.58207;113.575161,23.58191;113.574184,23.58168;113.573429,23.58148;113.572661,23.581254;113.57184,23.580998;113.570877,23.580655;113.569926,23.580278;113.569136,23.579948;113.568403,23.579614;113.567856,23.579345;113.566793,23.57878;113.566163,23.578429;113.56533,23.577917;113.564813,23.577591;113.56388,23.576949;113.563472,23.576658;113.563316,23.576545;113.562765,23.576111;113.562001,23.575495;113.561398,23.574961;113.560881,23.574492;113.560174,23.573789;113.559661,23.573268;113.559201,23.572756;113.558576,23.572036;113.557682,23.570898;113.55724,23.570286;113.556636,23.569401;113.556311,23.56888;113.555898,23.568177;113.555417,23.5673;113.555109,23.566701;113.554757,23.565955;113.554688,23.565794;113.554631,23.565673;113.554475,23.565308;113.554115,23.564345;113.554067,23.564214;113.553928,23.563798;113.553681,23.562912;113.553394,23.561693;113.553281,23.561202;113.553242,23.561042;113.552656,23.55842;113.552474,23.557717;113.552166,23.556667;113.551793,23.555569;113.551506,23.554766;113.551471,23.554688;113.551176,23.55395;113.550703,23.552882;113.550304,23.552023;113.549974,23.551363;113.549566,23.550612;113.54918,23.549931;113.548698,23.549132;113.545299,23.543698;113.544306,23.542131;113.543641,23.541063;113.542934,23.539826;113.542565,23.539128;113.542196,23.538372;113.541775,23.5374',\n",
       "      'action': '直行',\n",
       "      'assistant_action': '进入隧道'},\n",
       "     {'instruction': '沿耙齿影隧道途径G45大广高速、牛心岭大桥向西南行驶15.6千米向右前方行驶进入匝道',\n",
       "      'orientation': '西南',\n",
       "      'road': '耙齿影隧道',\n",
       "      'distance': '15625',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '15625',\n",
       "      'toll_road': '耙齿影隧道',\n",
       "      'duration': '652',\n",
       "      'polyline': '113.541775,23.5374;113.541359,23.536285;113.540395,23.532969;113.540312,23.532713;113.539848,23.53122;113.53888,23.528242;113.538637,23.527431;113.538325,23.526454;113.538151,23.52599;113.537856,23.525278;113.537587,23.524666;113.537348,23.52418;113.53707,23.523659;113.536723,23.523082;113.53622,23.5223;113.535872,23.521801;113.535812,23.521727;113.535616,23.521463;113.535069,23.520786;113.534614,23.520278;113.534197,23.519839;113.533663,23.519323;113.533238,23.518928;113.532782,23.518542;113.532713,23.518481;113.53224,23.518103;113.531554,23.5176;113.531046,23.517257;113.530295,23.516793;113.529692,23.516437;113.528477,23.51576;113.527548,23.515252;113.52635,23.514588;113.525299,23.51398;113.51941,23.510742;113.518316,23.510135;113.516563,23.509067;113.51513,23.508099;113.514227,23.507431;113.513655,23.507005;113.512882,23.506372;113.511884,23.50553;113.511319,23.505026;113.510742,23.504484;113.510699,23.50444;113.510117,23.503863;113.509258,23.502973;113.507539,23.501107;113.506871,23.500382;113.506276,23.499753;113.505334,23.498763;113.503872,23.497413;113.50355,23.497148;113.50224,23.496068;113.501133,23.49523;113.500347,23.494674;113.496471,23.492018;113.493958,23.490321;113.492209,23.489115;113.491727,23.488767;113.491523,23.488624;113.490972,23.48819;113.490747,23.488003;113.489805,23.487153;113.489336,23.486675;113.488767,23.486033;113.487899,23.485048;113.487448,23.48457;113.486944,23.484032;113.485508,23.482813;113.484991,23.482418;113.484297,23.481975;113.483668,23.481597;113.4824,23.480872;113.481832,23.480516;113.48135,23.480191;113.480998,23.4799;113.480703,23.479635;113.480443,23.479384;113.479918,23.478785;113.479696,23.478511;113.47924,23.477808;113.479223,23.477782;113.478928,23.477192;113.478655,23.476454;113.478494,23.47592;113.478394,23.47546;113.478351,23.475165;113.478273,23.47444;113.478242,23.473928;113.478103,23.470043;113.478034,23.469188;113.477908,23.468403;113.47783,23.468043;113.477635,23.467365;113.477422,23.466797;113.477348,23.466602;113.477066,23.465994;113.476884,23.465647;113.476385,23.464852;113.476189,23.464596;113.47592,23.464245;113.475165,23.463416;113.473168,23.461593;113.472418,23.460872;113.471554,23.459939;113.470321,23.458533;113.469679,23.457869;113.469154,23.457365;113.468641,23.456936;113.468073,23.45651;113.467461,23.456098;113.467018,23.455807;113.466797,23.455664;113.464314,23.454049;113.463116,23.45326;113.461493,23.452209;113.459262,23.450751;113.458863,23.450486;113.457539,23.449622;113.456623,23.449028;113.456024,23.448646;113.455651,23.448411;113.455278,23.44819;113.455035,23.448043;113.454219,23.447548;113.45378,23.447309;113.452865,23.446845;113.451458,23.446224;113.450846,23.445981;113.449974,23.445668;113.448798,23.445308;113.448372,23.4452;113.447951,23.445087;113.446962,23.44487;113.446662,23.444822;113.445256,23.444609;113.444822,23.444549;113.444319,23.444484;113.443368,23.444397;113.442383,23.444353;113.441441,23.444345;113.440747,23.444362;113.4398,23.444414;113.438164,23.444544',\n",
       "      'action': '向右前方行驶',\n",
       "      'assistant_action': '进入匝道'},\n",
       "     {'instruction': '沿G45大广高速出口向西行驶485米靠左',\n",
       "      'orientation': '西',\n",
       "      'road': 'G45大广高速出口',\n",
       "      'distance': '485',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '485',\n",
       "      'toll_road': 'G45大广高速出口',\n",
       "      'duration': '21',\n",
       "      'polyline': '113.438164,23.444544;113.438056,23.444631;113.437925,23.444666;113.437339,23.444748;113.436892,23.444822;113.435911,23.444987;113.434766,23.4452;113.433542,23.445443',\n",
       "      'action': '靠左',\n",
       "      'assistant_action': []},\n",
       "     {'instruction': '沿机场北立交向西行驶535米向右前方行驶',\n",
       "      'orientation': '西',\n",
       "      'road': '机场北立交',\n",
       "      'distance': '535',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '535',\n",
       "      'toll_road': '机场北立交',\n",
       "      'duration': '36',\n",
       "      'polyline': '113.433542,23.445443;113.431901,23.445846;113.431024,23.446098;113.429618,23.446506;113.42852,23.446866',\n",
       "      'action': '向右前方行驶',\n",
       "      'assistant_action': []},\n",
       "     {'instruction': '沿机场北立交途径G4京港澳高速向南行驶20.6千米靠左沿主路行驶',\n",
       "      'orientation': '南',\n",
       "      'road': '机场北立交',\n",
       "      'distance': '20589',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '20589',\n",
       "      'toll_road': '机场北立交',\n",
       "      'duration': '874',\n",
       "      'polyline': '113.42852,23.446866;113.428181,23.447053;113.42809,23.447118;113.428008,23.447201;113.427951,23.447296;113.427904,23.447396;113.427878,23.4475;113.427865,23.447604;113.427899,23.447826;113.427938,23.44793;113.42799,23.448008;113.428064,23.44809;113.428151,23.448164;113.428273,23.448234;113.428381,23.448277;113.428498,23.448299;113.428611,23.448307;113.428763,23.448294;113.42888,23.44826;113.429002,23.448203;113.42918,23.448064;113.429249,23.447977;113.429297,23.447878;113.429336,23.447773;113.429349,23.447665;113.429345,23.447556;113.429323,23.447444;113.429227,23.44717;113.429201,23.447036;113.429188,23.446875;113.429028,23.44648;113.428845,23.445977;113.428676,23.445434;113.428568,23.445035;113.428516,23.444822;113.428416,23.444414;113.428268,23.443615;113.428247,23.443429;113.428199,23.442704;113.428177,23.441359;113.428229,23.440516;113.428273,23.440187;113.428346,23.43967;113.428832,23.437122;113.428906,23.436519;113.428954,23.435972;113.42898,23.435356;113.428976,23.434909;113.428937,23.434141;113.428906,23.433837;113.428841,23.433303;113.42872,23.432635;113.428659,23.432344;113.428537,23.431862;113.428316,23.431141;113.428194,23.430794;113.427865,23.429961;113.427391,23.428963;113.426931,23.427995;113.426658,23.427405;113.426285,23.42661;113.425399,23.424718;113.424635,23.42309;113.424527,23.422852;113.424115,23.421901;113.423815,23.421141;113.423433,23.420035;113.423207,23.419288;113.422852,23.417943;113.422778,23.417656;113.422604,23.416775;113.422457,23.415968;113.422266,23.414557;113.42224,23.414184;113.422148,23.413199;113.422114,23.412639;113.422088,23.411862;113.422088,23.411788;113.422105,23.410512;113.422131,23.409718;113.422174,23.409058;113.42224,23.408333;113.422352,23.407439;113.422852,23.404284;113.422951,23.403646;113.423086,23.402543;113.423134,23.401719;113.423173,23.400985;113.423173,23.400877;113.423164,23.400521;113.423155,23.399874;113.423108,23.399028;113.423016,23.398008;113.422925,23.397292;113.422852,23.396879;113.422626,23.395634;113.422556,23.395247;113.422413,23.39451;113.421793,23.391124;113.421602,23.389891;113.421454,23.388958;113.421324,23.387873;113.421228,23.386866;113.421185,23.385334;113.421207,23.384141;113.421345,23.382188;113.421489,23.380694;113.421697,23.378906;113.421966,23.37658;113.42204,23.375911;113.42217,23.374792;113.422183,23.374253;113.422161,23.373194;113.422114,23.372613;113.421979,23.371419;113.421636,23.369844;113.421272,23.368655;113.421085,23.368099;113.421011,23.367917;113.420707,23.367205;113.420334,23.366406;113.419874,23.365556;113.41849,23.363342;113.417821,23.362235;113.417435,23.361532;113.41704,23.360729;113.416793,23.360165;113.416562,23.359575;113.416354,23.358984;113.415707,23.356931;113.415673,23.356819;113.41523,23.355543;113.415039,23.355069;113.414818,23.354592;113.41441,23.353859;113.414058,23.353299;113.413676,23.352773;113.413021,23.351957;113.412079,23.350977;113.408312,23.346762;113.407921,23.346289;113.407587,23.345946;113.40674,23.345065;113.406011,23.344336;113.404505,23.34306;113.400998,23.340382;113.400877,23.340282;113.399514,23.339175;113.398082,23.337895;113.396233,23.336137;113.395126,23.334996;113.395095,23.334961;113.393485,23.333147;113.392027,23.331359;113.391628,23.330877;113.390608,23.329588;113.386289,23.324236;113.386081,23.323971;113.385651,23.323424;113.384983,23.322487;113.384171,23.321324;113.383207,23.319835;113.382188,23.318121;113.381558,23.316988;113.380868,23.315625;113.380525,23.314926;113.380135,23.314106;113.379931,23.31365;113.379648,23.312986;113.37924,23.312005;113.378906,23.311159;113.376363,23.304822;113.376111,23.304236;113.375729,23.303411;113.375226,23.302487;113.374913,23.302001;113.374792,23.30181;113.374323,23.301163;113.373837,23.300551;113.373559,23.300234;113.373286,23.299935;113.372639,23.29928;113.370985,23.297713;113.370703,23.297418;113.370269,23.296918;113.369865,23.296393;113.369427,23.295729;113.369171,23.295269;113.368997,23.294913;113.368785,23.294436;113.368602,23.293954;113.368485,23.293585;113.368351,23.29309;113.368251,23.292578;113.36819,23.292205;113.368138,23.291688;113.368121,23.291432;113.368116,23.291016;113.368116,23.29079;113.368125,23.290408;113.36826,23.288481;113.368316,23.287448;113.368329,23.286428;113.36832,23.285642;113.368294,23.284991;113.368116,23.282135',\n",
       "      'action': '靠左',\n",
       "      'assistant_action': '沿主路行驶'},\n",
       "     {'instruction': '沿S4华南快速途径梅窿2号大桥、石湖中桥、梅窿1号大桥、长坤1号桥、金垄大桥向南行驶6.1千米直行进入隧道',\n",
       "      'orientation': '南',\n",
       "      'road': 'S4华南快速',\n",
       "      'distance': '6054',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '6054',\n",
       "      'toll_road': 'S4华南快速',\n",
       "      'duration': '404',\n",
       "      'polyline': '113.368116,23.282135;113.367986,23.280026;113.367943,23.279358;113.367882,23.278229;113.367669,23.274905;113.367622,23.273945;113.367635,23.273481;113.367661,23.273147;113.367726,23.272639;113.367843,23.272079;113.367934,23.271654;113.368268,23.270625;113.368372,23.270291;113.368498,23.269796;113.368563,23.269336;113.368572,23.269041;113.368572,23.268898;113.368563,23.26865;113.368511,23.268238;113.36839,23.267743;113.368303,23.267478;113.368099,23.267031;113.367951,23.266766;113.367487,23.266102;113.366011,23.26411;113.365204,23.262899;113.364783,23.262214;113.364371,23.261445;113.363893,23.26043;113.363472,23.259375;113.363212,23.258646;113.363038,23.258056;113.362986,23.257882;113.362752,23.25694;113.362565,23.255998;113.362483,23.255495;113.362435,23.255109;113.36237,23.254405;113.362348,23.254119;113.3623,23.252513;113.362244,23.247509;113.362231,23.24707;113.362222,23.24645;113.362205,23.246107;113.362144,23.245699;113.362053,23.245352;113.361997,23.245126;113.361819,23.244709;113.361714,23.244518;113.361493,23.244141;113.361437,23.244054;113.361098,23.243641;113.36076,23.243281;113.360395,23.242943;113.359987,23.242595;113.358911,23.241671;113.357565,23.240512;113.356931,23.239961;113.356823,23.23987;113.356597,23.239648;113.356324,23.239327;113.356046,23.238915;113.355903,23.238598;113.355786,23.238168;113.355729,23.237852;113.355725,23.237669;113.355755,23.237261;113.355794,23.23694;113.355907,23.236636;113.356168,23.236124;113.356202,23.236081;113.356428,23.235794;113.356641,23.235508;113.356888,23.235221;113.356931,23.235165;113.358038,23.233711;113.358394,23.233181;113.358568,23.232808;113.358641,23.232648;113.358932,23.231901',\n",
       "      'action': '直行',\n",
       "      'assistant_action': '进入隧道'},\n",
       "     {'instruction': '沿石门堂山隧道途径S4华南快速向南行驶2.5千米靠左沿主路行驶',\n",
       "      'orientation': '南',\n",
       "      'road': '石门堂山隧道',\n",
       "      'distance': '2504',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '2504',\n",
       "      'toll_road': '石门堂山隧道',\n",
       "      'duration': '207',\n",
       "      'polyline': '113.358932,23.231901;113.359084,23.231458;113.35951,23.23003;113.360595,23.226415;113.361042,23.225095;113.361115,23.224883;113.361385,23.224115;113.361567,23.223668;113.361892,23.222873;113.362188,23.22227;113.363685,23.219405;113.364045,23.218542;113.364397,23.217656;113.365326,23.215482;113.365894,23.21411;113.366267,23.21322;113.366953,23.211554;113.367322,23.21069',\n",
       "      'action': '靠左',\n",
       "      'assistant_action': '沿主路行驶'},\n",
       "     {'instruction': '沿S4华南快速途径华南大桥向南行驶13.0千米向右前方行驶进入匝道',\n",
       "      'orientation': '南',\n",
       "      'road': 'S4华南快速',\n",
       "      'distance': '13026',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '13026',\n",
       "      'toll_road': 'S4华南快速',\n",
       "      'duration': '1091',\n",
       "      'polyline': '113.367322,23.21069;113.367639,23.209913;113.36796,23.208924;113.368086,23.208446;113.36809,23.208433;113.368303,23.207604;113.368546,23.206298;113.368646,23.205694;113.368893,23.203911;113.368941,23.203455;113.368989,23.203125;113.369002,23.20306;113.369062,23.202661;113.369154,23.201966;113.369206,23.201541;113.369297,23.200946;113.369345,23.200651;113.36944,23.200056;113.36954,23.19964;113.370017,23.197227;113.370135,23.196567;113.370165,23.196276;113.370408,23.194162;113.370477,23.19332;113.370482,23.193299;113.370512,23.192886;113.370612,23.192135;113.370634,23.191979;113.370712,23.191172;113.370868,23.189718;113.370977,23.189149;113.371081,23.188806;113.371215,23.188451;113.371415,23.188056;113.371549,23.187817;113.371827,23.187444;113.372218,23.18701;113.372496,23.186727;113.374232,23.185069;113.374614,23.184635;113.374796,23.184362;113.374922,23.184145;113.375117,23.183702;113.375187,23.183446;113.375269,23.183069;113.375299,23.182691;113.375299,23.182487;113.37526,23.182131;113.375195,23.18178;113.375095,23.181419;113.375013,23.181224;113.374974,23.18115;113.374809,23.180859;113.374414,23.180286;113.369006,23.173329;113.36793,23.171901;113.366567,23.170165;113.365929,23.169353;113.365551,23.168828;113.365347,23.16849;113.365143,23.168121;113.36487,23.167461;113.364779,23.167183;113.364635,23.166693;113.364531,23.166176;113.364488,23.165877;113.364436,23.165217;113.364392,23.164709;113.364323,23.164149;113.364297,23.163806;113.364266,23.163277;113.364136,23.161549;113.363976,23.15918;113.363889,23.157908;113.363798,23.15684;113.363746,23.156458;113.363685,23.156233;113.363598,23.155946;113.363385,23.155451;113.362908,23.154523;113.362348,23.153372;113.361319,23.151137;113.361016,23.150408;113.360621,23.149397;113.360221,23.14819;113.360048,23.147678;113.359878,23.147135;113.359796,23.146884;113.359596,23.146085;113.359479,23.145573;113.359449,23.145417;113.359297,23.144683;113.359219,23.144271;113.358889,23.142721;113.35855,23.141042;113.358429,23.140564;113.358268,23.140061;113.358108,23.139657;113.357839,23.139089;113.357622,23.138702;113.357257,23.138212;113.356931,23.137834;113.356927,23.137826;113.356458,23.137266;113.356402,23.137205;113.35625,23.137062;113.356024,23.136845;113.355703,23.136584;113.355113,23.136168;113.352661,23.134709;113.35227,23.13444;113.352049,23.134275;113.351962,23.134188;113.351706,23.133902;113.351523,23.13362;113.351376,23.133303;113.351267,23.132973;113.351207,23.132604;113.351202,23.132474;113.351207,23.132227;113.351246,23.131753;113.351406,23.130503;113.351515,23.129436;113.35158,23.128824;113.351641,23.12829;113.351701,23.127635;113.351749,23.127018;113.351797,23.12622;113.35184,23.12536;113.35204,23.122405;113.352135,23.120994;113.352148,23.12059;113.352174,23.119874;113.352179,23.119275;113.352166,23.118381;113.352153,23.117934;113.352109,23.117656;113.352096,23.117418;113.352075,23.116992;113.352027,23.116237;113.351957,23.115234;113.351944,23.114996;113.351905,23.114501;113.351879,23.114106;113.351853,23.113715;113.351749,23.112287;113.351519,23.109084;113.351411,23.107496;113.351324,23.106328;113.351181,23.104245;113.35115,23.103785;113.351137,23.103472;113.351115,23.103043;113.351107,23.10194;113.351102,23.101285',\n",
       "      'action': '向右前方行驶',\n",
       "      'assistant_action': '进入匝道'},\n",
       "     {'instruction': '沿新港东立交桥向南行驶122米减速行驶到达收费站',\n",
       "      'orientation': '南',\n",
       "      'road': '新港东立交桥',\n",
       "      'distance': '122',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '122',\n",
       "      'toll_road': '新港东立交桥',\n",
       "      'duration': '71',\n",
       "      'polyline': '113.351102,23.101285;113.351037,23.101194;113.351003,23.101141;113.350977,23.101055;113.350951,23.100916;113.350916,23.100694;113.350881,23.100217',\n",
       "      'action': '减速行驶',\n",
       "      'assistant_action': '到达收费站'},\n",
       "     {'instruction': '沿新港东立交桥向南行驶17米靠左',\n",
       "      'orientation': '南',\n",
       "      'road': '新港东立交桥',\n",
       "      'distance': '17',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '1',\n",
       "      'polyline': '113.350881,23.100217;113.35089,23.100061',\n",
       "      'action': '靠左',\n",
       "      'assistant_action': []},\n",
       "     {'instruction': '沿新港东立交桥途径新港东路向东行驶1.0千米向右前方行驶',\n",
       "      'orientation': '东',\n",
       "      'road': '新港东立交桥',\n",
       "      'distance': '1010',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '95',\n",
       "      'polyline': '113.35089,23.100061;113.350946,23.099878;113.350959,23.099622;113.350977,23.098003;113.350959,23.097891;113.350924,23.097799;113.35089,23.097743;113.35082,23.097669;113.350734,23.097604;113.350625,23.097552;113.350547,23.09753;113.350412,23.097526;113.350308,23.097539;113.3502,23.097582;113.350156,23.097604;113.350065,23.097687;113.34997,23.097799;113.349944,23.09786;113.349922,23.097943;113.349913,23.098038;113.349931,23.098129;113.349961,23.098207;113.350017,23.09829;113.350074,23.098359;113.350148,23.098411;113.350217,23.098446;113.350404,23.098511;113.350846,23.098611;113.35148,23.09862;113.353095,23.098633;113.354679,23.098641;113.355365,23.098624;113.355599,23.09862',\n",
       "      'action': '向右前方行驶',\n",
       "      'assistant_action': []},\n",
       "     {'instruction': '沿会展南一路途径黄埔涌桥向南行驶461米右转',\n",
       "      'orientation': '南',\n",
       "      'road': '会展南一路',\n",
       "      'distance': '461',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '79',\n",
       "      'polyline': '113.355599,23.09862;113.35582,23.098403;113.355864,23.09832;113.355881,23.09826;113.35589,23.09803;113.355894,23.097843;113.35589,23.097391;113.355894,23.097036;113.355894,23.096957;113.355955,23.096389;113.355972,23.096076;113.356003,23.095799;113.356094,23.095525;113.356141,23.094957;113.356168,23.094753;113.356224,23.09454',\n",
       "      'action': '右转',\n",
       "      'assistant_action': []},\n",
       "     {'instruction': '向西行驶21米左转',\n",
       "      'orientation': '西',\n",
       "      'distance': '21',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '8',\n",
       "      'polyline': '113.356224,23.09454;113.356128,23.09454;113.35602,23.094536',\n",
       "      'action': '左转',\n",
       "      'assistant_action': []},\n",
       "     {'instruction': '向西南行驶666米左转',\n",
       "      'orientation': '西南',\n",
       "      'distance': '666',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '187',\n",
       "      'polyline': '113.35602,23.094536;113.356042,23.094414;113.356168,23.093763;113.35625,23.09326;113.356311,23.092873;113.356385,23.092387;113.356359,23.092296;113.35628,23.092231;113.35615,23.092196;113.355378,23.09207;113.354731,23.091892;113.354514,23.091819;113.353971,23.091636;113.353876,23.091602;113.353672,23.091489;113.352674,23.090868',\n",
       "      'action': '左转',\n",
       "      'assistant_action': []},\n",
       "     {'instruction': '向南行驶30米向左后方行驶',\n",
       "      'orientation': '南',\n",
       "      'distance': '30',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '6',\n",
       "      'polyline': '113.352674,23.090868;113.352704,23.090595',\n",
       "      'action': '向左后方行驶',\n",
       "      'assistant_action': []},\n",
       "     {'instruction': '向东北行驶98米右转',\n",
       "      'orientation': '东北',\n",
       "      'distance': '98',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '25',\n",
       "      'polyline': '113.352704,23.090595;113.352808,23.090764;113.352891,23.090833;113.353407,23.091168',\n",
       "      'action': '右转',\n",
       "      'assistant_action': []},\n",
       "     {'instruction': '向南行驶121米到达目的地',\n",
       "      'orientation': '南',\n",
       "      'distance': '121',\n",
       "      'tolls': '0',\n",
       "      'toll_distance': '0',\n",
       "      'toll_road': [],\n",
       "      'duration': '44',\n",
       "      'polyline': '113.353407,23.091168;113.353481,23.091007;113.353628,23.0901',\n",
       "      'action': [],\n",
       "      'assistant_action': '到达目的地'}],\n",
       "    'restriction': '0',\n",
       "    'traffic_lights': '1'}]}}"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 调用geo.py文件中的drive和geocode模块\n",
    "# 调用驾车规划路径的函数\n",
    "from geo import drive,geocode\n",
    "驾车_plan = drive(key,\"113.679287,23.632575\",\"113.354048,23.090160\")\n",
    "驾车_plan"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 3.4 骑行路径规划\n",
    "* 骑行路径规划用于规划骑行通勤方案，规划时不会考虑路况；考虑天桥、单行线、封路等情况。\n",
    "> URL:https://restapi.amap.com/v4/direction/bicycling?parameters"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'count': '1',\n",
       " 'geocodes': [{'formatted_address': '广东省广州市海珠区财经大学',\n",
       "   'country': '中国',\n",
       "   'province': '广东省',\n",
       "   'citycode': '020',\n",
       "   'city': '广州市',\n",
       "   'district': '海珠区',\n",
       "   'township': [],\n",
       "   'neighborhood': {'name': [], 'type': []},\n",
       "   'building': {'name': [], 'type': []},\n",
       "   'adcode': '440105',\n",
       "   'street': [],\n",
       "   'number': [],\n",
       "   'location': '113.354048,23.090160',\n",
       "   'level': '兴趣点'}]}"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 调用地理编码的函数获取目的地广财的地理编码\n",
    "from geo import geocode\n",
    "广财_geo = geocode(key,\"广东省广州市海珠区广东财经大学\") \n",
    "广财_geo"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'data': {'destination': '113.354048,23.090160',\n",
       "  'origin': '113.679287,23.632575',\n",
       "  'paths': [{'distance': 89644,\n",
       "    'duration': 21514,\n",
       "    'steps': [{'action': '右转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 101,\n",
       "      'duration': 24,\n",
       "      'instruction': '向东骑行101米右转',\n",
       "      'orientation': '东',\n",
       "      'polyline': '113.679592,23.632491;113.680586,23.632522',\n",
       "      'road': '',\n",
       "      'walk_type': 0},\n",
       "     {'action': '向右前方行驶',\n",
       "      'assistant_action': '',\n",
       "      'distance': 199,\n",
       "      'duration': 48,\n",
       "      'instruction': '向南骑行199米向右前方行驶',\n",
       "      'orientation': '南',\n",
       "      'polyline': '113.680586,23.632522;113.680638,23.63214;113.680668,23.63174;113.680634,23.631541;113.68059,23.631437;113.68059,23.631437;113.680499,23.631241;113.680408,23.631094;113.680208,23.630842',\n",
       "      'road': '',\n",
       "      'walk_type': 0},\n",
       "     {'action': '左转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 159,\n",
       "      'duration': 38,\n",
       "      'instruction': '向西骑行159米左转',\n",
       "      'orientation': '西',\n",
       "      'polyline': '113.680204,23.630838;113.680035,23.630773;113.680035,23.630773;113.679644,23.630638;113.679644,23.630638;113.679362,23.630521;113.679201,23.630473;113.679201,23.630473;113.679032,23.63043;113.679032,23.63043;113.67888,23.630404;113.67888,23.630404;113.678711,23.630365',\n",
       "      'road': '',\n",
       "      'walk_type': 0},\n",
       "     {'action': '左转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 237,\n",
       "      'duration': 57,\n",
       "      'instruction': '向南骑行237米左转',\n",
       "      'orientation': '南',\n",
       "      'polyline': '113.678711,23.63036;113.678711,23.62934;113.678711,23.62934;113.678711,23.629193;113.678689,23.629084;113.678637,23.629023;113.678424,23.628902;113.678368,23.628841;113.678316,23.628724;113.678294,23.628611;113.678294,23.628611;113.678277,23.628372',\n",
       "      'road': '',\n",
       "      'walk_type': 0},\n",
       "     {'action': '向右前方行驶',\n",
       "      'assistant_action': '',\n",
       "      'distance': 498,\n",
       "      'duration': 120,\n",
       "      'instruction': '向南骑行498米向右前方行驶',\n",
       "      'orientation': '南',\n",
       "      'polyline': '113.678273,23.628368;113.678572,23.628338;113.678685,23.628307;113.678685,23.628307;113.678845,23.628234;113.679045,23.628073;113.679158,23.627964;113.679158,23.627964;113.679214,23.627869;113.679236,23.627778;113.67928,23.627526;113.679288,23.627322;113.679288,23.627322;113.679253,23.626853;113.679184,23.626623;113.679141,23.626497;113.679002,23.626259;113.678941,23.626176;113.678711,23.625977;113.67862,23.625864;113.678529,23.62572;113.678438,23.625191;113.678429,23.625056;113.678451,23.624939;113.678572,23.624657',\n",
       "      'road': '',\n",
       "      'walk_type': 0},\n",
       "     {'action': '左转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 722,\n",
       "      'duration': 173,\n",
       "      'instruction': '向西南骑行722米左转',\n",
       "      'orientation': '西南',\n",
       "      'polyline': '113.678572,23.624653;113.678559,23.62451;113.678416,23.624323;113.678416,23.624323;113.677582,23.623793;113.676532,23.623346;113.676363,23.623255;113.676272,23.623151;113.676111,23.622834;113.676042,23.622739;113.67579,23.622483;113.675499,23.622279;113.675417,23.622174;113.675386,23.622088;113.675378,23.621836;113.675378,23.621836;113.675391,23.62161;113.675434,23.621476;113.675543,23.621359;113.675764,23.621181;113.675846,23.621089;113.675903,23.620994;113.675907,23.620855;113.675877,23.620725;113.675747,23.620547;113.675599,23.620373;113.675243,23.620013',\n",
       "      'road': '',\n",
       "      'walk_type': 0},\n",
       "     {'action': '向右前方行驶',\n",
       "      'assistant_action': '',\n",
       "      'distance': 412,\n",
       "      'duration': 99,\n",
       "      'instruction': '向东南骑行412米向右前方行驶',\n",
       "      'orientation': '东南',\n",
       "      'polyline': '113.675239,23.620009;113.67549,23.620013;113.675642,23.619991;113.675773,23.619948;113.676016,23.619796;113.676901,23.619193;113.677261,23.618785;113.678069,23.61783;113.678069,23.61783;113.678181,23.617656',\n",
       "      'road': '',\n",
       "      'walk_type': 0},\n",
       "     {'action': '右转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 1381,\n",
       "      'duration': 331,\n",
       "      'instruction': '沿乌土街向南骑行1381米右转',\n",
       "      'orientation': '南',\n",
       "      'polyline': '113.678181,23.617652;113.678095,23.617205;113.678051,23.617075;113.677973,23.616923;113.677743,23.616558;113.677609,23.616289;113.677391,23.615816;113.677339,23.615668;113.67714,23.614826;113.677049,23.614323;113.676927,23.613359;113.676845,23.612786;113.676602,23.611489;113.676415,23.610438;113.676411,23.610265;113.676411,23.610265;113.676489,23.609848;113.676502,23.609622;113.676493,23.609236;113.676415,23.608746;113.676415,23.608485;113.67648,23.60819;113.67661,23.607734;113.676819,23.606736;113.676862,23.606541;113.676914,23.606415;113.677014,23.606254;113.677535,23.605673',\n",
       "      'road': '乌土街',\n",
       "      'walk_type': 0},\n",
       "     {'action': '直行',\n",
       "      'assistant_action': '',\n",
       "      'distance': 165,\n",
       "      'duration': 40,\n",
       "      'instruction': '沿乌土街向西南骑行165米直行',\n",
       "      'orientation': '西南',\n",
       "      'polyline': '113.677535,23.605668;113.676988,23.605373;113.676402,23.605;113.676163,23.604887',\n",
       "      'road': '乌土街',\n",
       "      'walk_type': 0},\n",
       "     {'action': '直行',\n",
       "      'assistant_action': '',\n",
       "      'distance': 118,\n",
       "      'duration': 28,\n",
       "      'instruction': '沿934县道向西骑行118米直行',\n",
       "      'orientation': '西',\n",
       "      'polyline': '113.676159,23.604883;113.675799,23.604805;113.675508,23.604779;113.675508,23.604779;113.675013,23.60474',\n",
       "      'road': '934县道',\n",
       "      'walk_type': 0},\n",
       "     {'action': '向右前方行驶',\n",
       "      'assistant_action': '',\n",
       "      'distance': 674,\n",
       "      'duration': 162,\n",
       "      'instruction': '沿桃园东路向西南骑行674米向右前方行驶',\n",
       "      'orientation': '西南',\n",
       "      'polyline': '113.675009,23.604735;113.674236,23.604683;113.673893,23.604618;113.673464,23.604492;113.673464,23.604492;113.67168,23.604006;113.671541,23.603958;113.671411,23.603854;113.671068,23.603472;113.670807,23.603264;113.670807,23.603264;113.670525,23.603073;113.6702,23.602904;113.6702,23.602904;113.670022,23.602795;113.670022,23.602795;113.669909,23.602682;113.669818,23.602517;113.669787,23.602413;113.669718,23.601901',\n",
       "      'road': '桃园东路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '直行',\n",
       "      'assistant_action': '',\n",
       "      'distance': 247,\n",
       "      'duration': 59,\n",
       "      'instruction': '沿桃园东路向西南骑行247米直行',\n",
       "      'orientation': '西南',\n",
       "      'polyline': '113.669714,23.601897;113.66964,23.601771;113.66964,23.601771;113.669488,23.601558;113.669488,23.601558;113.668789,23.600859;113.668663,23.600768;113.668663,23.600768;113.668442,23.600647;113.667947,23.600417',\n",
       "      'road': '桃园东路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '向右前方行驶',\n",
       "      'assistant_action': '',\n",
       "      'distance': 2775,\n",
       "      'duration': 666,\n",
       "      'instruction': '沿桃园西路向西南骑行2775米向右前方行驶',\n",
       "      'orientation': '西南',\n",
       "      'polyline': '113.667943,23.600412;113.667331,23.600139;113.667331,23.600139;113.666224,23.599644;113.665955,23.599505;113.665955,23.599505;113.665781,23.599362;113.665781,23.599362;113.665521,23.599093;113.665521,23.599093;113.665286,23.598824;113.665286,23.598824;113.665256,23.598785;113.665256,23.598785;113.664796,23.598238;113.664796,23.598238;113.664401,23.597622;113.664401,23.597622;113.664071,23.59714;113.663746,23.59678;113.663746,23.59678;113.663477,23.59651;113.663477,23.59651;113.66224,23.595434;113.66224,23.595434;113.661563,23.594848;113.661563,23.594848;113.661311,23.594605;113.66115,23.594414;113.660907,23.594032;113.660907,23.594032;113.660829,23.593889;113.660729,23.593598;113.660547,23.593025;113.660464,23.592804;113.660464,23.592804;113.659931,23.591593;113.659831,23.591393;113.659631,23.59105;113.659631,23.59105;113.659115,23.59023;113.658824,23.589592;113.658824,23.589592;113.658754,23.589405;113.658754,23.589405;113.657817,23.58714;113.657747,23.586936;113.657695,23.586693;113.657548,23.585369;113.657548,23.585369;113.657483,23.585161;113.657326,23.584896;113.657326,23.584896;113.657114,23.58457;113.657062,23.584453;113.65691,23.583924;113.656884,23.583785;113.656879,23.583681;113.656888,23.583572;113.656979,23.58326;113.657066,23.58303;113.657157,23.582852;113.657378,23.582539;113.657431,23.582444;113.65747,23.582344;113.657483,23.582235;113.657483,23.582109;113.657435,23.580777;113.657405,23.580616;113.657405,23.580616;113.657296,23.580308;113.657244,23.580221;113.656723,23.579644;113.656723,23.579644;113.656597,23.579488;113.656411,23.579362',\n",
       "      'road': '桃园西路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '直行',\n",
       "      'assistant_action': '',\n",
       "      'distance': 1838,\n",
       "      'duration': 441,\n",
       "      'instruction': '沿石海工业大道向西南骑行1838米直行',\n",
       "      'orientation': '西南',\n",
       "      'polyline': '113.656406,23.579358;113.656055,23.57931;113.656055,23.57931;113.655091,23.579089;113.654918,23.579023;113.654566,23.57885;113.654566,23.57885;113.653681,23.578372;113.653681,23.578372;113.653429,23.578247;113.653429,23.578247;113.652713,23.577865;113.652713,23.577865;113.652452,23.577704;113.652001,23.577387;113.652001,23.577387;113.651654,23.577105;113.651654,23.577105;113.651437,23.57694;113.651437,23.57694;113.650681,23.576332;113.650681,23.576332;113.650378,23.576094;113.650378,23.576094;113.649674,23.575534;113.649674,23.575534;113.649583,23.575451;113.649583,23.575451;113.64924,23.575182;113.64924,23.575182;113.647409,23.573754;113.647409,23.573754;113.647279,23.573641;113.646793,23.573155;113.646793,23.573155;113.64661,23.57296;113.64661,23.57296;113.646419,23.572778;113.646419,23.572778;113.646202,23.572565;113.645968,23.57237;113.645252,23.571866;113.645252,23.571866;113.644974,23.571732;113.644974,23.571732;113.644883,23.571706;113.644618,23.571671;113.643967,23.571675;113.643967,23.571675;113.643511,23.57168;113.643511,23.57168;113.64329,23.57168;113.643047,23.571654;113.64293,23.571632;113.642548,23.571502;113.642326,23.571411;113.641979,23.571228;113.641636,23.571003;113.641636,23.571003;113.641437,23.57082',\n",
       "      'road': '石海工业大道',\n",
       "      'walk_type': 0},\n",
       "     {'action': '直行',\n",
       "      'assistant_action': '',\n",
       "      'distance': 2161,\n",
       "      'duration': 519,\n",
       "      'instruction': '沿政通路向西南骑行2161米直行',\n",
       "      'orientation': '西南',\n",
       "      'polyline': '113.641432,23.570816;113.641168,23.570525;113.641168,23.570525;113.640964,23.570265;113.640864,23.570156;113.640864,23.570156;113.640651,23.569978;113.640408,23.569822;113.638902,23.569006;113.638902,23.569006;113.638398,23.568746;113.638056,23.568611;113.637695,23.568529;113.637431,23.568507;113.637209,23.568516;113.637209,23.568516;113.636836,23.568576;113.636836,23.568576;113.636484,23.568676;113.636484,23.568676;113.635334,23.569058;113.633754,23.569614;113.633485,23.569674;113.633251,23.569692;113.633251,23.569692;113.633069,23.569688;113.633069,23.569688;113.632778,23.569635;113.632378,23.569492;113.631992,23.569319;113.631853,23.569223;113.631801,23.569158;113.631701,23.568997;113.631441,23.568338;113.631441,23.568338;113.63128,23.567947;113.63128,23.567947;113.63122,23.567834;113.631089,23.567656;113.630946,23.567526;113.630768,23.567387;113.630768,23.567387;113.630456,23.567157;113.630456,23.567157;113.630113,23.566884;113.630113,23.566884;113.629596,23.566458;113.629063,23.565799;113.628359,23.565174;113.62826,23.565026;113.62806,23.564592;113.627665,23.56395;113.627574,23.563815;113.627413,23.56365;113.626576,23.563003;113.626254,23.562804;113.625964,23.562682;113.624987,23.562365',\n",
       "      'road': '政通路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '左转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 795,\n",
       "      'duration': 191,\n",
       "      'instruction': '沿灌村路向西骑行795米左转',\n",
       "      'orientation': '西',\n",
       "      'polyline': '113.624983,23.562361;113.624431,23.562183;113.62349,23.56191;113.623216,23.561771;113.623003,23.561593;113.622661,23.561185;113.622049,23.560525;113.621936,23.560421;113.621775,23.560317;113.621515,23.560226;113.620226,23.559926;113.619579,23.559761;113.619427,23.559744;113.619427,23.559744;113.619188,23.559731;113.619188,23.559731;113.618555,23.559796;113.618355,23.559839;113.618251,23.559887;113.618251,23.559887;113.618142,23.55997',\n",
       "      'road': '灌村路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '向右前方行驶',\n",
       "      'assistant_action': '',\n",
       "      'distance': 1586,\n",
       "      'duration': 381,\n",
       "      'instruction': '沿环市东路向西南骑行1586米向右前方行驶',\n",
       "      'orientation': '西南',\n",
       "      'polyline': '113.618138,23.55997;113.617947,23.55977;113.617947,23.55977;113.616975,23.558824;113.616975,23.558824;113.615734,23.557604;113.615734,23.557604;113.615694,23.557565;113.615694,23.557565;113.615365,23.557227;113.615365,23.557227;113.615109,23.556979;113.615109,23.556979;113.614918,23.556797;113.614918,23.556797;113.614054,23.555937;113.613763,23.555612;113.613763,23.555612;113.613377,23.555126;113.613377,23.555126;113.613099,23.554627;113.613099,23.554627;113.612826,23.554019;113.612656,23.553559;113.612656,23.553559;113.612626,23.55349;113.612626,23.55349;113.612613,23.553442;113.612613,23.553442;113.612561,23.55329;113.612561,23.55329;113.612292,23.552569;113.612292,23.552569;113.61207,23.551997;113.61197,23.551775;113.611819,23.55148;113.611819,23.55148;113.611558,23.551107;113.611328,23.550846;113.611072,23.550595;113.610447,23.550082;113.610447,23.550082;113.609965,23.549692;113.609965,23.549692;113.60947,23.549293;113.60947,23.549293;113.60921,23.549067;113.60921,23.549067;113.609058,23.548928;113.608841,23.548681',\n",
       "      'road': '环市东路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '向左前方行驶',\n",
       "      'assistant_action': '',\n",
       "      'distance': 1372,\n",
       "      'duration': 329,\n",
       "      'instruction': '沿河东北路向西骑行1372米向左前方行驶',\n",
       "      'orientation': '西',\n",
       "      'polyline': '113.608837,23.548676;113.608455,23.548503;113.606888,23.547695;113.606888,23.547695;113.606845,23.547674;113.606845,23.547674;113.606445,23.547496;113.606445,23.547496;113.60474,23.546736;113.60474,23.546736;113.604679,23.546714;113.604679,23.546714;113.604266,23.546549;113.603854,23.546428;113.603303,23.546319;113.60286,23.54628;113.60286,23.54628;113.602839,23.54628;113.602839,23.54628;113.60178,23.546289;113.60178,23.546289;113.60145,23.546293;113.60145,23.546293;113.601046,23.546319;113.601046,23.546319;113.600903,23.546328;113.600903,23.546328;113.600543,23.546345;113.600543,23.546345;113.600321,23.546354;113.600321,23.546354;113.600304,23.546354;113.600304,23.546354;113.599497,23.546393;113.599076,23.546376;113.599076,23.546376;113.59849,23.54635;113.59849,23.54635;113.597431,23.546298;113.597431,23.546298;113.597292,23.546289;113.597292,23.546289;113.596788,23.54622;113.596788,23.54622;113.596263,23.546146;113.596263,23.546146;113.595933,23.546089',\n",
       "      'road': '河东北路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '向左前方行驶',\n",
       "      'assistant_action': '',\n",
       "      'distance': 65,\n",
       "      'duration': 16,\n",
       "      'instruction': '沿河东北路向西南骑行65米向左前方行驶',\n",
       "      'orientation': '西南',\n",
       "      'polyline': '113.595929,23.546085;113.59582,23.546059;113.595699,23.546011;113.595569,23.545877;113.595469,23.54572',\n",
       "      'road': '河东北路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '右转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 43,\n",
       "      'duration': 10,\n",
       "      'instruction': '沿河东北路向南骑行43米右转',\n",
       "      'orientation': '南',\n",
       "      'polyline': '113.595464,23.545716;113.59543,23.545616;113.595399,23.545399;113.595399,23.545399;113.595399,23.54533',\n",
       "      'road': '河东北路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '右转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 151,\n",
       "      'duration': 36,\n",
       "      'instruction': '向西南骑行151米右转',\n",
       "      'orientation': '西南',\n",
       "      'polyline': '113.595395,23.545326;113.594944,23.545378;113.594887,23.54536;113.594865,23.545313;113.594826,23.544952;113.594792,23.544813;113.594792,23.544813;113.594761,23.544727;113.594761,23.544727;113.594683,23.544501;113.594683,23.544501;113.594683,23.544488',\n",
       "      'road': '',\n",
       "      'walk_type': 0},\n",
       "     {'action': '向右前方行驶',\n",
       "      'assistant_action': '',\n",
       "      'distance': 1272,\n",
       "      'duration': 305,\n",
       "      'instruction': '沿沿江南路向西南骑行1272米向右前方行驶',\n",
       "      'orientation': '西南',\n",
       "      'polyline': '113.594679,23.544484;113.594631,23.544453;113.594575,23.544397;113.594544,23.544297;113.594523,23.544184;113.594501,23.543759;113.594518,23.543338;113.594518,23.543338;113.594518,23.54332;113.594518,23.54332;113.594627,23.542543;113.594692,23.541944;113.594701,23.541649;113.594683,23.541424;113.594683,23.541424;113.594622,23.540903;113.594622,23.540903;113.59454,23.540599;113.59454,23.540599;113.594323,23.540191;113.594323,23.540191;113.593728,23.53911;113.593537,23.538863;113.593437,23.538763;113.593437,23.538763;113.592964,23.538294;113.592964,23.538294;113.592075,23.537439;113.592075,23.537439;113.591484,23.536879;113.591484,23.536879;113.59122,23.536606;113.59122,23.536606;113.589852,23.535286;113.589852,23.535286;113.589518,23.534965;113.589518,23.534965;113.58934,23.534796',\n",
       "      'road': '沿江南路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '向右前方行驶',\n",
       "      'assistant_action': '',\n",
       "      'distance': 165,\n",
       "      'duration': 40,\n",
       "      'instruction': '沿沿江南路向西南骑行165米向右前方行驶',\n",
       "      'orientation': '西南',\n",
       "      'polyline': '113.589336,23.534792;113.589275,23.534792;113.589236,23.534779;113.588715,23.534379;113.588715,23.534379;113.588633,23.53431;113.588429,23.534054;113.588429,23.534054;113.588329,23.533876;113.588329,23.533811;113.588338,23.53372',\n",
       "      'road': '沿江南路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '左转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 323,\n",
       "      'duration': 78,\n",
       "      'instruction': '沿沿江南路向西南骑行323米左转',\n",
       "      'orientation': '西南',\n",
       "      'polyline': '113.588338,23.533715;113.588047,23.533333;113.588047,23.533333;113.586506,23.531393;113.586506,23.531393;113.586467,23.53135',\n",
       "      'road': '沿江南路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '右转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 464,\n",
       "      'duration': 111,\n",
       "      'instruction': '沿江湾路向东南骑行464米右转',\n",
       "      'orientation': '东南',\n",
       "      'polyline': '113.586463,23.531345;113.586645,23.531172;113.586645,23.531172;113.587018,23.530764;113.587018,23.530764;113.587257,23.530482;113.587257,23.530482;113.587925,23.529644;113.587925,23.529644;113.587982,23.529575;113.587982,23.529575;113.588359,23.529084;113.588359,23.529084;113.588477,23.528937;113.588477,23.528937;113.589223,23.527982',\n",
       "      'road': '江湾路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '左转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 880,\n",
       "      'duration': 211,\n",
       "      'instruction': '沿从化大道向西南骑行880米左转',\n",
       "      'orientation': '西南',\n",
       "      'polyline': '113.589223,23.527977;113.589006,23.527817;113.589006,23.527817;113.587891,23.527053;113.587891,23.527053;113.586771,23.526267;113.586771,23.526267;113.586732,23.526241;113.586732,23.526241;113.586558,23.526124;113.586558,23.526124;113.585686,23.52553;113.585686,23.52553;113.58556,23.525443;113.58556,23.525443;113.584809,23.524939;113.584544,23.524735;113.584544,23.524735;113.584201,23.52451;113.584201,23.52451;113.583919,23.524288;113.583919,23.524288;113.583546,23.524006;113.582322,23.523177',\n",
       "      'road': '从化大道',\n",
       "      'walk_type': 0},\n",
       "     {'action': '左转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 340,\n",
       "      'duration': 82,\n",
       "      'instruction': '向南骑行340米左转',\n",
       "      'orientation': '南',\n",
       "      'polyline': '113.582318,23.523173;113.582374,23.523108;113.582374,23.523108;113.582539,23.52276;113.582595,23.522604;113.582669,23.521714;113.582652,23.521519;113.582652,23.521519;113.582622,23.521471;113.582582,23.521441;113.582504,23.521415;113.582279,23.521376;113.582127,23.521302;113.58204,23.521228;113.58194,23.521115;113.581849,23.520972;113.58178,23.52092;113.581684,23.520855;113.581545,23.520803;113.581497,23.520764',\n",
       "      'road': '',\n",
       "      'walk_type': 0},\n",
       "     {'action': '左转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 196,\n",
       "      'duration': 47,\n",
       "      'instruction': '向南骑行196米左转',\n",
       "      'orientation': '南',\n",
       "      'polyline': '113.581493,23.52076;113.581493,23.52069;113.581549,23.520447;113.581536,23.520347;113.581246,23.519492;113.581211,23.519414;113.581172,23.519371;113.580981,23.519284;113.580898,23.519201',\n",
       "      'road': '',\n",
       "      'walk_type': 0},\n",
       "     {'action': '右转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 315,\n",
       "      'duration': 76,\n",
       "      'instruction': '向东南骑行315米右转',\n",
       "      'orientation': '东南',\n",
       "      'polyline': '113.580894,23.519197;113.580894,23.519175;113.581076,23.518255;113.581076,23.518255;113.58128,23.517834;113.58128,23.517834;113.58148,23.517574;113.58148,23.517574;113.581593,23.5174;113.581593,23.5174;113.582122,23.516619',\n",
       "      'road': '',\n",
       "      'walk_type': 0},\n",
       "     {'action': None,\n",
       "      'assistant_action': '',\n",
       "      'distance': 1351,\n",
       "      'duration': 324,\n",
       "      'instruction': '沿广从公路向西南骑行1351米null',\n",
       "      'orientation': '西南',\n",
       "      'polyline': '113.582122,23.516615;113.581875,23.516393;113.581875,23.516393;113.581749,23.516289;113.581749,23.516289;113.581241,23.515868;113.581241,23.515868;113.580868,23.515551;113.580868,23.515551;113.58069,23.515412;113.58069,23.515412;113.580056,23.514913;113.580056,23.514913;113.579683,23.514666;113.579332,23.514466;113.579102,23.514353;113.579102,23.514353;113.578585,23.514141;113.577014,23.513589;113.577014,23.513589;113.57671,23.513481;113.57671,23.513481;113.576007,23.513234;113.576007,23.513234;113.575386,23.513003;113.574436,23.512595;113.574436,23.512595;113.573963,23.512365;113.573963,23.512365;113.57303,23.511823;113.572405,23.511406;113.572405,23.511406;113.571549,23.510825;113.571549,23.510825;113.57148,23.510773;113.57148,23.510773;113.571228,23.510569;113.570924,23.51026',\n",
       "      'road': '广从公路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '直行',\n",
       "      'assistant_action': '',\n",
       "      'distance': 4522,\n",
       "      'duration': 1085,\n",
       "      'instruction': '沿广从公路向西南骑行4522米直行',\n",
       "      'orientation': '西南',\n",
       "      'polyline': '113.57092,23.510256;113.57066,23.509974;113.570421,23.509674;113.570239,23.509418;113.569484,23.50819;113.569484,23.50819;113.569336,23.507934;113.569336,23.507934;113.568741,23.506966;113.568741,23.506966;113.568498,23.506571;113.568498,23.506571;113.567865,23.505543;113.567865,23.505543;113.56753,23.505074;113.56753,23.505074;113.567218,23.504731;113.566897,23.504436;113.566897,23.504436;113.566593,23.504206;113.566133,23.503919;113.56569,23.503707;113.565035,23.503451;113.565035,23.503451;113.563542,23.502873;113.563542,23.502873;113.562318,23.502409;113.562318,23.502409;113.560043,23.501541;113.560043,23.501541;113.559792,23.50145;113.559792,23.50145;113.559466,23.501324;113.559466,23.501324;113.559084,23.501172;113.559084,23.501172;113.55822,23.500846;113.55822,23.500846;113.557804,23.500686;113.557804,23.500686;113.557352,23.500473;113.557352,23.500473;113.557153,23.500365;113.556697,23.500069;113.556376,23.499831;113.555477,23.499058;113.555477,23.499058;113.55523,23.498863;113.55523,23.498863;113.554878,23.498598;113.554878,23.498598;113.554536,23.498381;113.554536,23.498381;113.554119,23.498134;113.554119,23.498134;113.553746,23.497921;113.553746,23.497921;113.552691,23.497357;113.552691,23.497357;113.550378,23.49612;113.550378,23.49612;113.548798,23.49526;113.548798,23.49526;113.548641,23.495178;113.548641,23.495178;113.547365,23.494488;113.546801,23.494223;113.546801,23.494223;113.546298,23.49398;113.546298,23.49398;113.545612,23.493594;113.54549,23.493485;113.54549,23.493485;113.545464,23.493464;113.545464,23.493464;113.545304,23.49332;113.545304,23.49332;113.544918,23.492977;113.544414,23.492574;113.543589,23.491997;113.543589,23.491997;113.542947,23.491532;113.542947,23.491532;113.542339,23.49112;113.54194,23.490933;113.541306,23.49072;113.541306,23.49072;113.541246,23.490699;113.541246,23.490699;113.538919,23.490109;113.538919,23.490109;113.536541,23.489505;113.536541,23.489505;113.53612,23.489401;113.53612,23.489401;113.535508,23.48924;113.535508,23.48924;113.535313,23.489188;113.535313,23.489188;113.534831,23.489062;113.534436,23.488932',\n",
       "      'road': '广从公路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '向右前方行驶',\n",
       "      'assistant_action': '',\n",
       "      'distance': 1317,\n",
       "      'duration': 316,\n",
       "      'instruction': '沿广从北路辅路向西南骑行1317米向右前方行驶',\n",
       "      'orientation': '西南',\n",
       "      'polyline': '113.534431,23.488928;113.533663,23.488628;113.533663,23.488628;113.53316,23.488381;113.53316,23.488381;113.532626,23.488086;113.532626,23.488086;113.532092,23.487734;113.531602,23.487357;113.531602,23.487357;113.531398,23.48727;113.530994,23.486888;113.530994,23.486888;113.530564,23.486415;113.529544,23.48513;113.529544,23.48513;113.529362,23.484887;113.529362,23.484887;113.529297,23.4848;113.529297,23.4848;113.529054,23.484492;113.529054,23.484492;113.528368,23.483602;113.528056,23.483225;113.528056,23.483225;113.527704,23.482786;113.527704,23.482786;113.527461,23.48247;113.527422,23.482235;113.527422,23.482235;113.526241,23.48069;113.526241,23.48069;113.525911,23.480247',\n",
       "      'road': '广从北路辅路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '直行',\n",
       "      'assistant_action': '',\n",
       "      'distance': 8435,\n",
       "      'duration': 2024,\n",
       "      'instruction': '沿广从南路向西南骑行8435米直行',\n",
       "      'orientation': '西南',\n",
       "      'polyline': '113.525907,23.480243;113.525903,23.480243;113.525903,23.480243;113.524952,23.479093;113.524614,23.47875;113.524362,23.47852;113.524067,23.478286;113.524067,23.478286;113.523798,23.478103;113.523455,23.477899;113.522478,23.477357;113.522478,23.477357;113.521037,23.476562;113.521037,23.476562;113.520417,23.476228;113.520417,23.476228;113.519822,23.475951;113.519436,23.475807;113.518954,23.475673;113.518954,23.475673;113.518589,23.475651;113.518016,23.475477;113.518016,23.475477;113.517548,23.47533;113.517548,23.47533;113.517496,23.475313;113.517496,23.475313;113.517322,23.475252;113.517322,23.475252;113.517122,23.475195;113.517122,23.475195;113.516085,23.474865;113.516085,23.474865;113.515734,23.474761;113.515734,23.474761;113.515551,23.474701;113.515551,23.474701;113.515382,23.474648;113.515382,23.474648;113.515321,23.474627;113.515321,23.474627;113.515056,23.474544;113.515056,23.474544;113.513468,23.474045;113.513468,23.474045;113.512161,23.473655;113.511949,23.473464;113.511949,23.473464;113.511285,23.473264;113.511285,23.473264;113.510265,23.472943;113.509523,23.472682;113.508203,23.472122;113.507847,23.471944;113.507847,23.471944;113.50776,23.471901;113.50776,23.471901;113.506823,23.471419;113.506823,23.471419;113.505334,23.470642;113.505334,23.470642;113.504918,23.470417;113.504918,23.470417;113.503503,23.469696;113.503503,23.469696;113.502773,23.469314;113.502773,23.469314;113.501849,23.468832;113.501849,23.468832;113.501076,23.468424;113.500851,23.46829;113.500421,23.467995;113.50013,23.467747;113.50013,23.467747;113.499813,23.467413;113.499544,23.467096;113.499544,23.467096;113.499332,23.46678;113.499093,23.466341;113.499093,23.466341;113.498477,23.465056;113.498477,23.465056;113.498437,23.464965;113.498437,23.464965;113.497543,23.463077;113.497543,23.463077;113.496723,23.461376;113.496554,23.461068;113.496302,23.46069;113.496302,23.46069;113.49615,23.460486;113.49615,23.460486;113.496029,23.460334;113.496029,23.460334;113.495243,23.459384;113.495243,23.459384;113.494883,23.458963;113.494883,23.458963;113.494362,23.458346;113.494362,23.458346;113.49411,23.458034;113.49411,23.458034;113.494019,23.457921;113.494019,23.457921;113.493715,23.457496;113.493715,23.457496;113.493555,23.457261;113.493555,23.457261;113.493411,23.457027;113.493411,23.457027;113.493203,23.456654;113.493008,23.456259;113.492695,23.455512;113.492496,23.454891;113.492188,23.453681;113.492188,23.453681;113.492083,23.453555;113.491923,23.452882;113.491862,23.452591;113.491862,23.452591;113.491762,23.452144;113.491762,23.452144;113.49174,23.452036;113.49174,23.452036;113.491593,23.451398;113.491593,23.451398;113.491489,23.450955;113.491489,23.450955;113.491328,23.450256;113.491328,23.450256;113.491298,23.450126;113.491298,23.450126;113.491146,23.449401;113.491146,23.449401;113.490747,23.447574;113.490747,23.447574;113.490664,23.447196;113.490664,23.447196;113.490634,23.447049;113.490634,23.447049;113.490495,23.446497;113.490495,23.446497;113.490443,23.446233;113.490443,23.446233;113.490404,23.446094;113.490404,23.446094;113.490152,23.444961;113.490152,23.444961;113.489931,23.443876;113.489931,23.443876;113.489757,23.443073;113.489757,23.443073;113.489688,23.442773;113.489688,23.442773;113.489735,23.4426;113.489735,23.4426;113.489579,23.441823;113.489579,23.441823;113.489475,23.441367;113.489475,23.441367;113.489236,23.440299;113.489236,23.440299;113.489093,23.4398;113.488893,23.439301;113.488893,23.439301;113.488741,23.438967;113.488451,23.438442;113.488095,23.437943;113.487765,23.437556;113.487765,23.437556;113.487496,23.437279;113.487496,23.437279;113.48701,23.436819;113.48701,23.436819;113.486016,23.435851;113.486016,23.435851;113.485729,23.435582;113.485729,23.435582;113.485499,23.435373;113.485499,23.435373;113.485417,23.435282;113.485417,23.435282;113.485148,23.43503;113.485148,23.43503;113.484032,23.434019;113.484032,23.434019;113.483806,23.433815;113.483806,23.433815;113.483537,23.433589;113.483537,23.433589;113.483446,23.433524;113.483446,23.433524;113.483394,23.433485;113.483394,23.433485;113.483116,23.433359;113.483116,23.433359;113.482921,23.433255;113.482639,23.433051;113.482639,23.433051;113.482109,23.432613;113.482109,23.432613;113.481463,23.432057;113.481463,23.432057;113.481363,23.431979;113.481363,23.431979;113.480686,23.431367;113.480686,23.431367;113.480564,23.431211;113.480564,23.431211;113.480434,23.431059;113.480434,23.431059;113.480317,23.430916;113.480317,23.430916;113.480052,23.430538;113.480052,23.430538;113.48,23.430456;113.48,23.430456;113.4798,23.430139;113.4798,23.430139;113.479366,23.429405;113.478785,23.428385;113.478785,23.428385;113.478481,23.427843;113.478481,23.427843;113.478099,23.427201;113.477951,23.426975;113.477951,23.426975;113.477726,23.426328;113.477726,23.426328;113.477695,23.426259;113.477695,23.426259;113.477595,23.426037;113.476832,23.424761',\n",
       "      'road': '广从南路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '直行',\n",
       "      'assistant_action': '',\n",
       "      'distance': 15088,\n",
       "      'duration': 3621,\n",
       "      'instruction': '沿广从公路辅路向西南骑行15088米直行',\n",
       "      'orientation': '西南',\n",
       "      'polyline': '113.476827,23.424757;113.476345,23.42395;113.476345,23.42395;113.476176,23.423672;113.476176,23.423672;113.475825,23.42309;113.475825,23.42309;113.475681,23.422843;113.475681,23.422843;113.475321,23.422248;113.475321,23.422248;113.47497,23.421667;113.47497,23.421667;113.474826,23.421419;113.474826,23.421419;113.474618,23.421089;113.474618,23.421089;113.474284,23.420525;113.474284,23.420525;113.47395,23.419957;113.47395,23.419957;113.473741,23.419701;113.473741,23.419701;113.473633,23.419579;113.473633,23.419579;113.47342,23.419319;113.47342,23.419319;113.47329,23.419167;113.47329,23.419167;113.473255,23.419132;113.473255,23.419132;113.472977,23.418832;113.472977,23.418832;113.472886,23.418741;113.472886,23.418741;113.472513,23.418524;113.470729,23.417066;113.470729,23.417066;113.470508,23.416858;113.470508,23.416858;113.470308,23.416706;113.470308,23.416706;113.470195,23.416602;113.469852,23.416332;113.469852,23.416332;113.469553,23.416085;113.469553,23.416085;113.469149,23.415764;113.469149,23.415764;113.468203,23.414944;113.468203,23.414944;113.467257,23.414128;113.467257,23.414128;113.467096,23.413971;113.467096,23.413971;113.466562,23.413438;113.466562,23.413438;113.466259,23.413181;113.466259,23.413181;113.465577,23.412617;113.465577,23.412617;113.464983,23.412096;113.464983,23.412096;113.464501,23.411697;113.464501,23.411697;113.464058,23.411354;113.464058,23.411354;113.463754,23.411111;113.463754,23.411111;113.46342,23.41082;113.46342,23.41082;113.462886,23.410378;113.462886,23.410378;113.461862,23.409527;113.461862,23.409527;113.461619,23.409323;113.461619,23.409323;113.461467,23.409197;113.461467,23.409197;113.460816,23.408646;113.460655,23.408533;113.460655,23.408533;113.459987,23.407704;113.459987,23.407704;113.4599,23.407604;113.4599,23.407604;113.458589,23.405911;113.458589,23.405911;113.457591,23.404709;113.457591,23.404709;113.457292,23.404336;113.457292,23.404336;113.457031,23.404002;113.457031,23.404002;113.456927,23.403863;113.456927,23.403863;113.456523,23.403342;113.456523,23.403342;113.455981,23.402652;113.455981,23.402652;113.455586,23.402096;113.455586,23.402096;113.455395,23.401836;113.455395,23.401836;113.455226,23.401615;113.455226,23.401615;113.455187,23.401563;113.455187,23.401563;113.454891,23.401163;113.454891,23.401163;113.454553,23.400703;113.454553,23.400703;113.454201,23.400208;113.454201,23.400208;113.454049,23.400009;113.454049,23.400009;113.453355,23.398919;113.453355,23.398919;113.452752,23.397973;113.452752,23.397973;113.452691,23.397882;113.452691,23.397882;113.452609,23.397743;113.452609,23.397743;113.452439,23.397452;113.452439,23.397452;113.452027,23.39674;113.452027,23.39674;113.451141,23.395243;113.451141,23.395243;113.450898,23.394835;113.450898,23.394835;113.450417,23.394036;113.450417,23.394036;113.45023,23.393715;113.45023,23.393715;113.449748,23.392925;113.449748,23.392925;113.44944,23.392487;113.449206,23.392187;113.448893,23.39184;113.448594,23.391554;113.448594,23.391554;113.448268,23.391263;113.447869,23.390951;113.447869,23.390951;113.447222,23.390534;113.446879,23.390343;113.446549,23.390187;113.446549,23.390187;113.446055,23.389974;113.446055,23.389974;113.445399,23.389744;113.443164,23.389049;113.443164,23.389049;113.442773,23.388989;113.442773,23.388989;113.442439,23.388902;113.441944,23.388741;113.440898,23.388268;113.440898,23.388268;113.440135,23.387899;113.440135,23.387899;113.439358,23.387535;113.439358,23.387535;113.438663,23.387187;113.438663,23.387187;113.437691,23.386714;113.437691,23.386714;113.436128,23.385964;113.435595,23.38569;113.435595,23.38569;113.435109,23.385438;113.434931,23.38526;113.434931,23.38526;113.434479,23.385078;113.434479,23.385078;113.434062,23.384944;113.43372,23.384852;113.43372,23.384852;113.433472,23.384809;113.433472,23.384809;113.432969,23.384744;113.432969,23.384744;113.432682,23.384731;113.432682,23.384731;113.4323,23.384718;113.4323,23.384718;113.432018,23.384714;113.432018,23.384714;113.431276,23.384692;113.431276,23.384692;113.430742,23.384679;113.430742,23.384679;113.430269,23.38467;113.430269,23.38467;113.429514,23.384657;113.429514,23.384657;113.428898,23.384644;113.428898,23.384644;113.428589,23.38464;113.428589,23.38464;113.427643,23.384614;113.427643,23.384614;113.427348,23.384609;113.427348,23.384609;113.427079,23.384605;113.427079,23.384605;113.426914,23.384605;113.426914,23.384605;113.426745,23.384601;113.426745,23.384601;113.426393,23.384588;113.426393,23.384588;113.426241,23.384588;113.426241,23.384588;113.425981,23.384583;113.425981,23.384583;113.425417,23.384566;113.425417,23.384566;113.425152,23.384557;113.425152,23.384557;113.424358,23.38451;113.424358,23.38451;113.423924,23.384453;113.423924,23.384453;113.423168,23.38431;113.423168,23.38431;113.423043,23.384284;113.423043,23.384284;113.422717,23.384201;113.422717,23.384201;113.422305,23.384102;113.422305,23.384102;113.421593,23.383906;113.421593,23.383906;113.420582,23.383633;113.420582,23.383633;113.419666,23.383381;113.419666,23.383381;113.418498,23.383069;113.418498,23.383069;113.418108,23.382964;113.418108,23.382964;113.417964,23.382921;113.417964,23.382921;113.416988,23.382652;113.416988,23.382652;113.41671,23.382582;113.41671,23.382582;113.416467,23.382517;113.416467,23.382517;113.415972,23.382383;113.415972,23.382383;113.4152,23.382174;113.4152,23.382174;113.415035,23.382179;113.414913,23.382157;113.414913,23.382157;113.414796,23.382131;113.414796,23.382131;113.411363,23.381237;113.411363,23.381237;113.410998,23.381146;113.410998,23.381146;113.410347,23.380964;113.410347,23.380964;113.410143,23.380903;113.410143,23.380903;113.408555,23.380464;113.407001,23.380009;113.407001,23.380009;113.406832,23.379961;113.406688,23.379857;113.406688,23.379857;113.405877,23.379492;113.405877,23.379492;113.405208,23.379154;113.405208,23.379154;113.404809,23.378937;113.404809,23.378937;113.404596,23.378815;113.404596,23.378815;113.404123,23.378529;113.403741,23.378264;113.403741,23.378264;113.403607,23.378173;113.403607,23.378173;113.403316,23.377977;113.403316,23.377977;113.403086,23.377799;113.402313,23.377131;113.402313,23.377131;113.402131,23.377092;113.402001,23.377001;113.401033,23.376141;113.401033,23.376141;113.400742,23.375898;113.400742,23.375898;113.400599,23.375777;113.400599,23.375777;113.400582,23.37576;113.400582,23.37576;113.399349,23.374722;113.399349,23.374722;113.398837,23.374306;113.398837,23.374306;113.398342,23.373876;113.398342,23.373876;113.398164,23.373728;113.398164,23.373728;113.398103,23.373672;113.398103,23.373672;113.397496,23.373125;113.397496,23.373125;113.397127,23.372795;113.397127,23.372795;113.396389,23.372148;113.396389,23.372148;113.395447,23.371306;113.395395,23.37125;113.395234,23.371016;113.395234,23.371016;113.394861,23.370673;113.394861,23.370673;113.394154,23.370069;113.394154,23.370069;113.393976,23.369918;113.393976,23.369918;113.393511,23.369514;113.393511,23.369514;113.392956,23.369049;113.392956,23.369049;113.392062,23.368299;113.391541,23.367899;113.391541,23.367899;113.391046,23.367565;113.391046,23.367565;113.390499,23.367231;113.390499,23.367231;113.390217,23.36707;113.390217,23.36707;113.38865,23.366285;113.38865,23.366285;113.387804,23.365868;113.387804,23.365868;113.385668,23.364822;113.385668,23.364822;113.385417,23.364701;113.385417,23.364701;113.385082,23.364531;113.385082,23.364531;113.384761,23.364371;113.384761,23.364371;113.383867,23.363945;113.383867,23.363945;113.383411,23.363728;113.383411,23.363728;113.38306,23.363533;113.382678,23.363346;113.382678,23.363346;113.382188,23.363099;113.382188,23.363099;113.381975,23.362999;113.381975,23.362999;113.381649,23.362839;113.381649,23.362839;113.381502,23.362765;113.381502,23.362765;113.381441,23.362734;113.381441,23.362734;113.381068,23.362552;113.381068,23.362552;113.380534,23.362283;113.380534,23.362283;113.38013,23.362079;113.38013,23.362079;113.379115,23.361532;113.379115,23.361532;113.378872,23.361424;113.378872,23.361424;113.378841,23.361415;113.378841,23.361415;113.378624,23.361319;113.37816,23.361068;113.37816,23.361068;113.377461,23.360595;113.377461,23.360595;113.377201,23.360417;113.377201,23.360417;113.376437,23.359913;113.376437,23.359913;113.376163,23.359735;113.376163,23.359735;113.375977,23.359614;113.375977,23.359614;113.375964,23.359601;113.375964,23.359601;113.375482,23.359275;113.375482,23.359275;113.375421,23.359227;113.375421,23.359227;113.3752,23.359054;113.3752,23.359054;113.37497,23.358859;113.37497,23.358859;113.374314,23.358307;113.374314,23.358307;113.374171,23.358164;113.374171,23.358164;113.373872,23.35786;113.373872,23.35786;113.373368,23.357365;113.373368,23.357365;113.373238,23.357231;113.372995,23.356918;113.372995,23.356918;113.37263,23.356545;113.37263,23.356545;113.3725,23.356415;113.3725,23.356415;113.372196,23.356102;113.372196,23.356102;113.371888,23.355751;113.371888,23.355751;113.371602,23.355347;113.371354,23.354939;113.371233,23.354701;113.371233,23.354701;113.371128,23.354501;113.371128,23.354501;113.37099,23.354236;113.37099,23.354236;113.370842,23.353919;113.370842,23.353919;113.37066,23.353529;113.37066,23.353529;113.370295,23.352791;113.370295,23.352791;113.370126,23.352391;113.370126,23.352391;113.369874,23.351892;113.369492,23.351059;113.369492,23.351059;113.369327,23.350716;113.369327,23.350716;113.368793,23.349609;113.368793,23.349609;113.368273,23.348568;113.368273,23.348568;113.368112,23.348268;113.36773,23.347656;113.367548,23.347339;113.367548,23.347339;113.367444,23.347114;113.367335,23.346788;113.367335,23.346788;113.367253,23.346337;113.367253,23.346337;113.367153,23.34572;113.367066,23.345326;113.367066,23.345326;113.366962,23.344857;113.366962,23.344857;113.366832,23.344293;113.366832,23.344293;113.36678,23.344071;113.36678,23.344071;113.366732,23.343902;113.366732,23.343902;113.36671,23.343811',\n",
       "      'road': '广从公路辅路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '直行',\n",
       "      'assistant_action': '',\n",
       "      'distance': 1950,\n",
       "      'duration': 468,\n",
       "      'instruction': '沿广从四路向南骑行1950米直行',\n",
       "      'orientation': '南',\n",
       "      'polyline': '113.366706,23.343806;113.366558,23.343242;113.366237,23.342214;113.366237,23.342214;113.366068,23.341662;113.366068,23.341662;113.365846,23.340998;113.365846,23.340998;113.365625,23.340226;113.365625,23.340226;113.365603,23.340139;113.365603,23.340139;113.365421,23.339592;113.365421,23.339592;113.365078,23.338503;113.365078,23.338503;113.364831,23.337856;113.364831,23.337856;113.364818,23.337812;113.364818,23.337812;113.364544,23.33714;113.364544,23.33714;113.364206,23.336359;113.364206,23.336359;113.363902,23.335703;113.363902,23.335703;113.363542,23.334922;113.363542,23.334922;113.363503,23.334861;113.363207,23.334227;113.363207,23.334227;113.362856,23.333433;113.362856,23.333433;113.362552,23.332704;113.362405,23.332296;113.362405,23.332296;113.362292,23.331931;113.362292,23.331931;113.362183,23.331606;113.362183,23.331606;113.362148,23.331476;113.362148,23.331476;113.361988,23.330868;113.361988,23.330868;113.361949,23.330712;113.361949,23.330712;113.361827,23.330195;113.361827,23.330195;113.361398,23.328316;113.361398,23.328316;113.361324,23.327925;113.361324,23.327925;113.361076,23.326927',\n",
       "      'road': '广从四路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '向右前方行驶',\n",
       "      'assistant_action': '',\n",
       "      'distance': 231,\n",
       "      'duration': 55,\n",
       "      'instruction': '沿广从公路向南骑行231米向右前方行驶',\n",
       "      'orientation': '南',\n",
       "      'polyline': '113.361072,23.326923;113.360964,23.326432;113.360964,23.326432;113.360773,23.325807;113.360629,23.325417;113.360629,23.325417;113.36049,23.325117;113.36049,23.325117;113.360399,23.324913',\n",
       "      'road': '广从公路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '向右前方行驶',\n",
       "      'assistant_action': '',\n",
       "      'distance': 202,\n",
       "      'duration': 48,\n",
       "      'instruction': '沿广从公路向西南骑行202米向右前方行驶',\n",
       "      'orientation': '西南',\n",
       "      'polyline': '113.360395,23.324909;113.359957,23.324479;113.359796,23.324154;113.359796,23.324154;113.359635,23.323798;113.359622,23.323724;113.359605,23.323611;113.359679,23.323316',\n",
       "      'road': '广从公路',\n",
       "      'walk_type': 0},\n",
       "     {'action': None,\n",
       "      'assistant_action': '',\n",
       "      'distance': 1116,\n",
       "      'duration': 268,\n",
       "      'instruction': '沿广从三路向南骑行1116米null',\n",
       "      'orientation': '南',\n",
       "      'polyline': '113.359679,23.323312;113.35908,23.321988;113.35908,23.321988;113.358889,23.321541;113.358889,23.321541;113.358607,23.320755;113.358607,23.320755;113.358494,23.320425;113.358494,23.320425;113.358464,23.320352;113.358464,23.320352;113.358333,23.32;113.358333,23.32;113.357613,23.31803;113.357613,23.31803;113.357591,23.317982;113.357591,23.317982;113.357309,23.317153;113.357309,23.317153;113.356988,23.316298;113.356988,23.316298;113.35628,23.314358;113.356102,23.31398;113.355981,23.313789',\n",
       "      'road': '广从三路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '左转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 1152,\n",
       "      'duration': 276,\n",
       "      'instruction': '沿广从三路辅路向西南骑行1152米左转',\n",
       "      'orientation': '西南',\n",
       "      'polyline': '113.355977,23.313785;113.355877,23.313546;113.355877,23.313546;113.355404,23.312248;113.355286,23.312001;113.355213,23.311944;113.355213,23.311944;113.355082,23.311823;113.355035,23.311654;113.355035,23.311654;113.354961,23.311376;113.354961,23.311376;113.354844,23.310951;113.354844,23.310951;113.354813,23.310846;113.354813,23.310846;113.35477,23.310699;113.35477,23.310699;113.354683,23.310486;113.354683,23.310486;113.354076,23.30888;113.354076,23.30888;113.353754,23.308051;113.353312,23.307066;113.353312,23.307005;113.353312,23.307005;113.353312,23.306875;113.353312,23.306875;113.353077,23.30638;113.353008,23.306198;113.352951,23.305872;113.352951,23.305872;113.352786,23.305603;113.352786,23.305603;113.352595,23.305299;113.352595,23.305299;113.352478,23.305126;113.352274,23.304848;113.352274,23.304848;113.35174,23.304184',\n",
       "      'road': '广从三路辅路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '右转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 102,\n",
       "      'duration': 24,\n",
       "      'instruction': '沿太和北路向东南骑行102米右转',\n",
       "      'orientation': '东南',\n",
       "      'polyline': '113.351736,23.30418;113.351797,23.304071;113.351797,23.304071;113.352066,23.303885;113.352066,23.303885;113.3525,23.303585',\n",
       "      'road': '太和北路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '向右前方行驶',\n",
       "      'assistant_action': '',\n",
       "      'distance': 1673,\n",
       "      'duration': 402,\n",
       "      'instruction': '沿太和中路向南骑行1673米向右前方行驶',\n",
       "      'orientation': '南',\n",
       "      'polyline': '113.3525,23.303581;113.352487,23.303333;113.352487,23.303333;113.35253,23.302973;113.35253,23.302973;113.352582,23.302717;113.352582,23.302717;113.352682,23.302201;113.352682,23.302201;113.352795,23.301649;113.352795,23.301649;113.352995,23.300664;113.352995,23.300664;113.353034,23.300482;113.353034,23.300482;113.353103,23.300104;113.353103,23.300104;113.353199,23.299614;113.353199,23.299614;113.353307,23.299119;113.353307,23.299119;113.353377,23.298802;113.353377,23.298802;113.353429,23.298529;113.353429,23.298529;113.353468,23.298333;113.353468,23.298333;113.353546,23.297938;113.353546,23.297938;113.353607,23.297635;113.353607,23.297635;113.353759,23.296927;113.353759,23.296927;113.353863,23.296372;113.353863,23.296372;113.353889,23.296276;113.353889,23.296276;113.35395,23.295977;113.35395,23.295977;113.354019,23.295612;113.354019,23.295612;113.354023,23.295582;113.354023,23.295582;113.354084,23.295334;113.354084,23.295334;113.354193,23.295039;113.354193,23.295039;113.354366,23.294731;113.354588,23.294423;113.354588,23.294423;113.354696,23.294319;113.354696,23.294319;113.354809,23.294167;113.354809,23.294167;113.355009,23.293963;113.355009,23.293963;113.355122,23.293837;113.355122,23.293837;113.355534,23.293433;113.355534,23.293433;113.356016,23.292977;113.356016,23.292977;113.356289,23.292708;113.356289,23.292708;113.356411,23.292591;113.356411,23.292591;113.356962,23.292053;113.356962,23.292053;113.357253,23.291771;113.357465,23.291519;113.357917,23.290825;113.357917,23.290825;113.357977,23.290734;113.357977,23.290734;113.358299,23.290113;113.358459,23.289852',\n",
       "      'road': '太和中路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '直行',\n",
       "      'assistant_action': '',\n",
       "      'distance': 526,\n",
       "      'duration': 126,\n",
       "      'instruction': '沿太和南路向南骑行526米直行',\n",
       "      'orientation': '南',\n",
       "      'polyline': '113.358459,23.289848;113.358503,23.289536;113.358503,23.289536;113.358511,23.28921;113.358477,23.28885;113.358477,23.28885;113.358424,23.288464;113.358424,23.288464;113.358407,23.28819;113.358407,23.28819;113.358398,23.287995;113.358411,23.287826;113.358411,23.287826;113.358433,23.28773;113.358433,23.28773;113.358459,23.287622;113.358459,23.287622;113.358681,23.286845;113.358681,23.286845;113.358746,23.28658;113.358746,23.28658;113.358837,23.286285;113.358837,23.286285;113.358915,23.286029;113.358915,23.286029;113.359036,23.285621;113.359036,23.285621;113.359188,23.285161',\n",
       "      'road': '太和南路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '向右前方行驶',\n",
       "      'assistant_action': '',\n",
       "      'distance': 377,\n",
       "      'duration': 90,\n",
       "      'instruction': '沿上南路向南骑行377米向右前方行驶',\n",
       "      'orientation': '南',\n",
       "      'polyline': '113.359188,23.285156;113.359375,23.284596;113.359375,23.284596;113.359648,23.283737;113.359648,23.283737;113.359861,23.283016;113.359931,23.282713;113.359974,23.282461;113.359974,23.282205;113.359957,23.281845',\n",
       "      'road': '上南路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '直行',\n",
       "      'assistant_action': '',\n",
       "      'distance': 772,\n",
       "      'duration': 185,\n",
       "      'instruction': '沿上南路向西南骑行772米直行',\n",
       "      'orientation': '西南',\n",
       "      'polyline': '113.359952,23.28184;113.359848,23.281536;113.359813,23.281454;113.359813,23.281454;113.359653,23.281141;113.359653,23.281141;113.359345,23.280664;113.359345,23.280664;113.35911,23.280473;113.35911,23.280473;113.358698,23.280135;113.358698,23.280135;113.358264,23.279779;113.358264,23.279779;113.358255,23.27977;113.358255,23.27977;113.358181,23.279709;113.358181,23.279709;113.357895,23.27947;113.357895,23.27947;113.357522,23.279115;113.35727,23.278811;113.35727,23.278811;113.357127,23.278594;113.357127,23.278594;113.356905,23.27819;113.356797,23.277891;113.356797,23.277891;113.356545,23.27704;113.356545,23.27704;113.356471,23.276749;113.356471,23.276749;113.356241,23.275916',\n",
       "      'road': '上南路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '直行',\n",
       "      'assistant_action': '',\n",
       "      'distance': 24,\n",
       "      'duration': 6,\n",
       "      'instruction': '沿大源北路向南骑行24米直行',\n",
       "      'orientation': '南',\n",
       "      'polyline': '113.356237,23.275911;113.356189,23.275699',\n",
       "      'road': '大源北路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '直行',\n",
       "      'assistant_action': '',\n",
       "      'distance': 3015,\n",
       "      'duration': 724,\n",
       "      'instruction': '沿大源北路向南骑行3015米直行',\n",
       "      'orientation': '南',\n",
       "      'polyline': '113.356185,23.275694;113.356059,23.275321;113.356059,23.275321;113.355951,23.275087;113.355951,23.275087;113.35579,23.274753;113.355356,23.274045;113.355356,23.274045;113.355156,23.273733;113.355156,23.273733;113.354379,23.272504;113.354379,23.272504;113.354128,23.272109;113.354128,23.272109;113.353351,23.270903;113.353351,23.270903;113.353242,23.270734;113.353242,23.270734;113.352565,23.269653;113.352565,23.269653;113.352478,23.269518;113.352478,23.269518;113.352305,23.269197;113.352305,23.269197;113.352161,23.268802;113.352101,23.268568;113.352083,23.268481;113.352083,23.268481;113.35207,23.268112;113.352096,23.267839;113.352157,23.267569;113.352283,23.267235;113.352283,23.267235;113.352452,23.266953;113.352582,23.266766;113.352582,23.266766;113.352721,23.26661;113.352721,23.26661;113.353016,23.266359;113.353016,23.266359;113.353429,23.266072;113.353429,23.266072;113.35388,23.26579;113.35388,23.26579;113.354141,23.265625;113.354141,23.265625;113.35487,23.265169;113.35487,23.265169;113.355725,23.26464;113.356037,23.264436;113.356328,23.264227;113.356328,23.264227;113.356528,23.264067;113.35678,23.263837;113.35678,23.263837;113.356832,23.263776;113.356832,23.263776;113.357201,23.263368;113.357201,23.263368;113.357422,23.263069;113.357674,23.26263;113.357674,23.26263;113.35803,23.261866;113.358329,23.261189;113.358329,23.261189;113.358451,23.260816;113.358503,23.260538;113.35852,23.260382;113.35852,23.260382;113.358516,23.260087;113.358498,23.259957;113.358433,23.259653;113.358294,23.259301;113.358194,23.259106;113.358194,23.259106;113.357865,23.258594;113.357865,23.258594;113.357613,23.258238;113.357613,23.258238;113.357461,23.258016;113.357461,23.258016;113.357196,23.257643;113.357196,23.257643;113.357057,23.257448;113.357057,23.257448;113.356927,23.257274;113.356927,23.257274;113.356884,23.257201;113.356884,23.257201;113.356228,23.256194;113.356228,23.256194;113.355625,23.255217;113.355625,23.255217;113.355608,23.255187;113.355608,23.255187;113.355447,23.254948;113.355447,23.254948;113.354579,23.25365;113.354579,23.25365;113.354058,23.252869',\n",
       "      'road': '大源北路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '向右前方行驶',\n",
       "      'assistant_action': '',\n",
       "      'distance': 1163,\n",
       "      'duration': 279,\n",
       "      'instruction': '沿大源中路向西南骑行1163米向右前方行驶',\n",
       "      'orientation': '西南',\n",
       "      'polyline': '113.354054,23.252865;113.353737,23.252409;113.353303,23.251845;113.353303,23.251845;113.353008,23.251484;113.353008,23.251484;113.352726,23.251133;113.352726,23.251133;113.352695,23.251094;113.352695,23.251094;113.352648,23.251042;113.352648,23.251042;113.352587,23.250964;113.352587,23.250964;113.352548,23.250916;113.352548,23.250916;113.352283,23.250586;113.352283,23.250586;113.351649,23.249831;113.351649,23.249831;113.351189,23.249266;113.351189,23.249266;113.350842,23.248841;113.350842,23.248841;113.350803,23.248802;113.350803,23.248802;113.350734,23.248715;113.350734,23.248715;113.35033,23.248225;113.35033,23.248225;113.350273,23.248151;113.350273,23.248151;113.349735,23.247496;113.349735,23.247496;113.349627,23.247357;113.349627,23.247357;113.349336,23.246966;113.349336,23.246966;113.349245,23.246836;113.349245,23.246836;113.349093,23.24661;113.349093,23.24661;113.348911,23.24628;113.348641,23.245716;113.348641,23.245716;113.348459,23.245204;113.348407,23.245;113.348407,23.245;113.348359,23.244822;113.348359,23.244822;113.34832,23.244653;113.34832,23.244653;113.348225,23.244266;113.348225,23.244266;113.348125,23.243928',\n",
       "      'road': '大源中路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '直行',\n",
       "      'assistant_action': '',\n",
       "      'distance': 414,\n",
       "      'duration': 99,\n",
       "      'instruction': '沿黄庄北路向西南骑行414米直行',\n",
       "      'orientation': '西南',\n",
       "      'polyline': '113.348121,23.243924;113.348003,23.243681;113.347856,23.243442;113.347856,23.243442;113.347626,23.243051;113.347626,23.243051;113.347179,23.242235;113.347179,23.242235;113.346849,23.241602;113.346476,23.240916;113.346476,23.240916;113.346276,23.240582',\n",
       "      'road': '黄庄北路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '直行',\n",
       "      'assistant_action': '',\n",
       "      'distance': 1541,\n",
       "      'duration': 370,\n",
       "      'instruction': '沿黄庄南路向西南骑行1541米直行',\n",
       "      'orientation': '西南',\n",
       "      'polyline': '113.346272,23.240577;113.345881,23.239974;113.345881,23.239974;113.345451,23.239353;113.345451,23.239353;113.345148,23.238906;113.344913,23.238529;113.344913,23.238529;113.34451,23.237817;113.34451,23.237817;113.34428,23.23737;113.34428,23.23737;113.344223,23.237266;113.344223,23.237266;113.344019,23.236858;113.344019,23.236858;113.343594,23.236029;113.343594,23.236029;113.343234,23.235404;113.343234,23.235404;113.343121,23.235213;113.343121,23.235213;113.342609,23.234457;113.342609,23.234457;113.342431,23.234214;113.342431,23.234214;113.342057,23.233737;113.342057,23.233737;113.341654,23.233212;113.341654,23.233212;113.341441,23.232943;113.341441,23.232943;113.341359,23.232847;113.341359,23.232847;113.34115,23.232587;113.34115,23.232587;113.34099,23.232352;113.34099,23.232352;113.340668,23.23181;113.340477,23.231515;113.340265,23.231228;113.340265,23.231228;113.340135,23.231076;113.340135,23.231076;113.33987,23.230825;113.339527,23.230547;113.339527,23.230547;113.339145,23.230269;113.339145,23.230269;113.338585,23.229874;113.338585,23.229874;113.33829,23.229605;113.33819,23.229484;113.338108,23.229353;113.33803,23.229193;113.337977,23.229032',\n",
       "      'road': '黄庄南路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '右转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 3936,\n",
       "      'duration': 945,\n",
       "      'instruction': '沿同和路向南骑行3936米右转',\n",
       "      'orientation': '南',\n",
       "      'polyline': '113.337973,23.229028;113.337947,23.22888;113.337938,23.228737;113.337951,23.228481;113.337951,23.228481;113.338003,23.228255;113.338294,23.227491;113.338294,23.227491;113.338437,23.227114;113.338437,23.227114;113.338498,23.226914;113.338498,23.226914;113.338559,23.226649;113.338628,23.226124;113.338628,23.226124;113.338624,23.225851;113.338624,23.225851;113.338572,23.225265;113.338403,23.22401;113.338403,23.22401;113.338281,23.223164;113.338281,23.223164;113.338168,23.222261;113.338168,23.222261;113.33816,23.222174;113.33816,23.222174;113.338121,23.221819;113.338121,23.221819;113.338047,23.221276;113.338047,23.221276;113.33803,23.221124;113.33803,23.221124;113.338008,23.220959;113.338008,23.220959;113.33799,23.220803;113.33799,23.220803;113.337938,23.220369;113.337938,23.220369;113.337899,23.220091;113.337899,23.220091;113.337847,23.21954;113.337847,23.21954;113.337708,23.218872;113.337648,23.218689;113.337474,23.218325;113.337357,23.218155;113.337122,23.217886;113.337122,23.217886;113.336853,23.217652;113.336853,23.217652;113.336732,23.217587;113.336732,23.217587;113.336437,23.217422;113.336168,23.217326;113.336168,23.217326;113.335907,23.217257;113.33546,23.217183;113.33546,23.217183;113.334141,23.217083;113.334141,23.217083;113.333498,23.217036;113.333498,23.217036;113.333056,23.216984;113.332782,23.216931;113.332431,23.216814;113.332431,23.216814;113.332066,23.216649;113.331814,23.216506;113.331536,23.216311;113.331155,23.21599;113.331155,23.21599;113.330326,23.215239;113.330326,23.215239;113.330165,23.215082;113.330165,23.215082;113.329952,23.214826;113.329722,23.214514;113.329722,23.214514;113.32951,23.214119;113.32951,23.214119;113.329371,23.213785;113.329371,23.213785;113.32924,23.213329;113.32924,23.213329;113.329188,23.213064;113.329188,23.213064;113.329171,23.212843;113.329171,23.212843;113.329171,23.211866;113.329171,23.211866;113.329171,23.211806;113.329171,23.211806;113.329171,23.21135;113.329171,23.21135;113.329171,23.211124;113.329171,23.211124;113.329171,23.210911;113.329171,23.210911;113.329171,23.210734;113.329171,23.210734;113.329167,23.210226;113.329136,23.209688;113.329136,23.209688;113.329058,23.209006;113.329058,23.209006;113.32895,23.208281;113.32895,23.208281;113.328919,23.208147;113.328919,23.208147;113.328889,23.20796;113.328889,23.20796;113.328806,23.207552;113.328806,23.207552;113.328767,23.207405;113.328767,23.207405;113.328607,23.206532;113.328607,23.206532;113.328381,23.205434;113.328381,23.205434;113.328225,23.204896;113.328225,23.204896;113.328125,23.204596;113.328125,23.204596;113.32796,23.204197;113.32796,23.204197;113.327873,23.203997;113.327873,23.203997;113.327648,23.203464;113.327648,23.203464;113.327617,23.203394;113.327617,23.203394;113.327296,23.202678;113.327296,23.202678;113.326931,23.201879;113.326931,23.201879;113.326489,23.200903;113.326489,23.200903;113.326228,23.200321;113.326228,23.200321;113.326207,23.20026;113.326207,23.20026;113.32599,23.1998;113.32599,23.1998;113.325968,23.199731;113.325968,23.199731;113.325877,23.199544;113.325877,23.199544;113.325786,23.199227;113.325755,23.199054;113.325738,23.198776',\n",
       "      'road': '同和路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '左转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 134,\n",
       "      'duration': 32,\n",
       "      'instruction': '沿同园中路向西南骑行134米左转',\n",
       "      'orientation': '西南',\n",
       "      'polyline': '113.325734,23.198772;113.325547,23.198633;113.325352,23.198533;113.325352,23.198533;113.324961,23.198446;113.324961,23.198446;113.324779,23.198381;113.324779,23.198381;113.324557,23.19826',\n",
       "      'road': '同园中路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '向右前方行驶',\n",
       "      'assistant_action': '',\n",
       "      'distance': 132,\n",
       "      'duration': 32,\n",
       "      'instruction': '沿石桥东街向南骑行132米向右前方行驶',\n",
       "      'orientation': '南',\n",
       "      'polyline': '113.324553,23.198255;113.324666,23.197509;113.324666,23.197509;113.324705,23.197222;113.324705,23.197222;113.324722,23.197131;113.324753,23.197062',\n",
       "      'road': '石桥东街',\n",
       "      'walk_type': 0},\n",
       "     {'action': '直行',\n",
       "      'assistant_action': '',\n",
       "      'distance': 41,\n",
       "      'duration': 10,\n",
       "      'instruction': '沿同和大街向南骑行41米直行',\n",
       "      'orientation': '南',\n",
       "      'polyline': '113.324753,23.197057;113.324648,23.196701',\n",
       "      'road': '同和大街',\n",
       "      'walk_type': 0},\n",
       "     {'action': '向左前方行驶',\n",
       "      'assistant_action': '',\n",
       "      'distance': 17,\n",
       "      'duration': 4,\n",
       "      'instruction': '沿石握路向西南骑行17米向左前方行驶',\n",
       "      'orientation': '西南',\n",
       "      'polyline': '113.324644,23.196697;113.324566,23.196567',\n",
       "      'road': '石握路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '左转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 219,\n",
       "      'duration': 53,\n",
       "      'instruction': '沿桥南街向南骑行219米左转',\n",
       "      'orientation': '南',\n",
       "      'polyline': '113.324562,23.196562;113.324575,23.196385;113.324575,23.196385;113.324596,23.19612;113.324596,23.19612;113.324614,23.195903;113.324614,23.195755;113.324614,23.195755;113.324566,23.194835;113.324566,23.194835;113.324536,23.194688;113.324497,23.194575',\n",
       "      'road': '桥南街',\n",
       "      'walk_type': 0},\n",
       "     {'action': '左转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 72,\n",
       "      'duration': 17,\n",
       "      'instruction': '沿握山南二路向东南骑行72米左转',\n",
       "      'orientation': '东南',\n",
       "      'polyline': '113.324492,23.19457;113.324592,23.194566;113.324978,23.194414;113.324978,23.194414;113.325069,23.194371;113.325139,23.194314',\n",
       "      'road': '握山南二路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '右转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 182,\n",
       "      'duration': 44,\n",
       "      'instruction': '沿蟹石路向东骑行182米右转',\n",
       "      'orientation': '东',\n",
       "      'polyline': '113.325139,23.19431;113.325382,23.194423;113.325499,23.194462;113.32553,23.194457;113.325699,23.194353;113.325872,23.19434;113.326133,23.194375;113.326276,23.194414;113.326406,23.194475;113.326528,23.194583;113.326771,23.194635',\n",
       "      'road': '蟹石路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '左转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 3102,\n",
       "      'duration': 744,\n",
       "      'instruction': '沿广州大道北向南骑行3102米左转',\n",
       "      'orientation': '南',\n",
       "      'polyline': '113.326771,23.194635;113.327018,23.193754;113.327018,23.193754;113.327083,23.19352;113.327083,23.19352;113.327201,23.193108;113.327201,23.193108;113.32727,23.192882;113.32727,23.192882;113.327365,23.192483;113.327365,23.192483;113.327431,23.192179;113.327431,23.192179;113.327491,23.191797;113.327543,23.191133;113.327543,23.191133;113.327565,23.190729;113.327565,23.190729;113.327626,23.189961;113.327626,23.189961;113.327747,23.18806;113.327747,23.18806;113.327756,23.187756;113.327756,23.187756;113.327747,23.187409;113.327721,23.187274;113.327721,23.187274;113.3277,23.187153;113.327656,23.186984;113.327656,23.186984;113.327509,23.186675;113.327309,23.186415;113.327218,23.186319;113.327218,23.186319;113.326884,23.185981;113.326615,23.185747;113.326615,23.185747;113.326428,23.185603;113.326428,23.185603;113.326267,23.18546;113.326267,23.18546;113.326029,23.18526;113.325707,23.185013;113.325707,23.185013;113.325556,23.1849;113.325556,23.1849;113.325356,23.184744;113.325356,23.184744;113.325182,23.184605;113.325182,23.184605;113.32497,23.184431;113.32497,23.184431;113.32477,23.184271;113.32477,23.184271;113.324566,23.184093;113.324566,23.184093;113.32441,23.183967;113.32441,23.183967;113.323663,23.183338;113.323663,23.183338;113.32339,23.183129;113.32339,23.183129;113.323281,23.183038;113.323281,23.183038;113.323008,23.182808;113.322465,23.182287;113.322235,23.182088;113.322235,23.182088;113.321749,23.18168;113.321749,23.18168;113.32151,23.181471;113.32151,23.181471;113.321007,23.181016;113.321007,23.181016;113.320803,23.18079;113.320703,23.180634;113.320599,23.180443;113.320503,23.180226;113.320503,23.180226;113.32046,23.180052;113.320408,23.179718;113.320391,23.179332;113.320391,23.179332;113.320378,23.179041;113.320378,23.179041;113.320378,23.178694;113.320378,23.178694;113.32036,23.178312;113.32036,23.178312;113.320352,23.178082;113.320352,23.178082;113.320312,23.176076;113.320312,23.176076;113.320291,23.175894;113.320291,23.175894;113.32026,23.17572;113.32026,23.17572;113.320221,23.17553;113.320221,23.17553;113.320148,23.17526;113.320048,23.175017;113.319848,23.174601;113.319848,23.174601;113.319757,23.174397;113.319757,23.174397;113.319484,23.173845;113.319484,23.173845;113.319084,23.173043;113.319084,23.173043;113.318859,23.172582;113.318859,23.172582;113.31875,23.172365;113.31875,23.172365;113.318637,23.172122;113.318637,23.172122;113.318581,23.172014;113.318581,23.172014;113.318398,23.171649;113.318398,23.171649;113.318377,23.171602;113.318377,23.171602;113.318255,23.171311;113.318147,23.170951;113.318147,23.170951;113.317982,23.169926;113.317982,23.169926;113.317951,23.169687',\n",
       "      'road': '广州大道北',\n",
       "      'walk_type': 0},\n",
       "     {'action': '右转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 446,\n",
       "      'duration': 107,\n",
       "      'instruction': '沿银利街向东骑行446米右转',\n",
       "      'orientation': '东',\n",
       "      'polyline': '113.317947,23.169683;113.318099,23.169653;113.318099,23.169653;113.31908,23.169488;113.31908,23.169488;113.320334,23.169362;113.320334,23.169362;113.32069,23.169327;113.32069,23.169327;113.321089,23.169288;113.321089,23.169288;113.32138,23.169245;113.32138,23.169245;113.321975,23.169193;113.321975,23.169193;113.322287,23.169136',\n",
       "      'road': '银利街',\n",
       "      'walk_type': 0},\n",
       "     {'action': '左转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 206,\n",
       "      'duration': 49,\n",
       "      'instruction': '沿银利街向南骑行206米左转',\n",
       "      'orientation': '南',\n",
       "      'polyline': '113.322287,23.169132;113.322348,23.168989;113.322409,23.168676;113.322409,23.168676;113.322448,23.168511;113.322448,23.168511;113.322517,23.168168;113.322517,23.168168;113.322622,23.167721;113.322622,23.167721;113.322713,23.167305',\n",
       "      'road': '银利街',\n",
       "      'walk_type': 0},\n",
       "     {'action': '直行',\n",
       "      'assistant_action': '',\n",
       "      'distance': 306,\n",
       "      'duration': 73,\n",
       "      'instruction': '沿牛利岗南街向东骑行306米直行',\n",
       "      'orientation': '东',\n",
       "      'polyline': '113.322713,23.1673;113.323264,23.167413;113.323264,23.167413;113.323798,23.167513;113.323798,23.167513;113.32411,23.167548;113.32411,23.167548;113.324414,23.167552;113.324757,23.167483;113.325178,23.167361;113.325629,23.167183',\n",
       "      'road': '牛利岗南街',\n",
       "      'walk_type': 0},\n",
       "     {'action': '右转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 14,\n",
       "      'duration': 3,\n",
       "      'instruction': '骑行14米右转',\n",
       "      'orientation': '',\n",
       "      'polyline': '113.325629,23.167179;113.32576,23.167144',\n",
       "      'road': '',\n",
       "      'walk_type': 1},\n",
       "     {'action': '左转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 16,\n",
       "      'duration': 4,\n",
       "      'instruction': '沿沙太南路向南骑行16米左转',\n",
       "      'orientation': '南',\n",
       "      'polyline': '113.32576,23.16714;113.325707,23.167005',\n",
       "      'road': '沙太南路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '向左前方行驶',\n",
       "      'assistant_action': '',\n",
       "      'distance': 258,\n",
       "      'duration': 62,\n",
       "      'instruction': '沿银燕路向南骑行258米向左前方行驶',\n",
       "      'orientation': '南',\n",
       "      'polyline': '113.325703,23.167001;113.325803,23.166832;113.325803,23.166832;113.325881,23.166675;113.325881,23.166675;113.325916,23.166532;113.325916,23.166532;113.325994,23.166181;113.326003,23.16599;113.325829,23.16513;113.325829,23.16513;113.325777,23.164857;113.325768,23.164735;113.325768,23.164735;113.325773,23.164727',\n",
       "      'road': '银燕路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '左转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 47,\n",
       "      'duration': 11,\n",
       "      'instruction': '沿银燕路向东南骑行47米左转',\n",
       "      'orientation': '东南',\n",
       "      'polyline': '113.325773,23.164722;113.325911,23.164575;113.326042,23.164379',\n",
       "      'road': '银燕路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '向右前方行驶',\n",
       "      'assistant_action': '',\n",
       "      'distance': 71,\n",
       "      'duration': 17,\n",
       "      'instruction': '沿燕成路向东骑行71米向右前方行驶',\n",
       "      'orientation': '东',\n",
       "      'polyline': '113.326042,23.164375;113.326536,23.164466;113.326727,23.16447',\n",
       "      'road': '燕成路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '向右前方行驶',\n",
       "      'assistant_action': '',\n",
       "      'distance': 46,\n",
       "      'duration': 11,\n",
       "      'instruction': '沿银燕路向东南骑行46米向右前方行驶',\n",
       "      'orientation': '东南',\n",
       "      'polyline': '113.326727,23.16447;113.32684,23.164401;113.327031,23.164175',\n",
       "      'road': '银燕路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '直行',\n",
       "      'assistant_action': '',\n",
       "      'distance': 190,\n",
       "      'duration': 46,\n",
       "      'instruction': '沿银燕路向南骑行190米直行',\n",
       "      'orientation': '南',\n",
       "      'polyline': '113.327031,23.164171;113.32704,23.164102;113.32704,23.164102;113.32707,23.16352;113.32707,23.16352;113.327092,23.163099;113.327092,23.163099;113.327109,23.162717;113.327109,23.162717;113.327109,23.162504;113.327148,23.162448',\n",
       "      'road': '银燕路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '向右前方行驶',\n",
       "      'assistant_action': '',\n",
       "      'distance': 175,\n",
       "      'duration': 42,\n",
       "      'instruction': '沿燕塘路向东南骑行175米向右前方行驶',\n",
       "      'orientation': '东南',\n",
       "      'polyline': '113.327148,23.162444;113.327222,23.162409;113.327717,23.162266;113.327717,23.162266;113.328138,23.162114;113.328138,23.162114;113.328251,23.162066;113.328251,23.162066;113.328429,23.16201;113.328711,23.161827',\n",
       "      'road': '燕塘路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '右转',\n",
       "      'assistant_action': None,\n",
       "      'distance': 81,\n",
       "      'duration': 19,\n",
       "      'instruction': '沿燕塘路向东南骑行81米右转',\n",
       "      'orientation': '东南',\n",
       "      'polyline': '113.328711,23.161823;113.328845,23.161628;113.328971,23.161341;113.328971,23.161341;113.329045,23.161155',\n",
       "      'road': '燕塘路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '向右前方行驶',\n",
       "      'assistant_action': '',\n",
       "      'distance': 180,\n",
       "      'duration': 43,\n",
       "      'instruction': '沿燕岭路向西南骑行180米向右前方行驶',\n",
       "      'orientation': '西南',\n",
       "      'polyline': '113.329045,23.16115;113.328676,23.16092;113.328676,23.16092;113.328355,23.160707;113.328355,23.160707;113.328034,23.16043;113.328034,23.16043;113.32796,23.160356;113.32796,23.160356;113.32776,23.160156;113.32776,23.160156;113.327708,23.160095',\n",
       "      'road': '燕岭路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '向左前方行驶',\n",
       "      'assistant_action': '',\n",
       "      'distance': 19,\n",
       "      'duration': 5,\n",
       "      'instruction': '向西骑行19米向左前方行驶',\n",
       "      'orientation': '西',\n",
       "      'polyline': '113.327704,23.160091;113.327539,23.160048;113.327526,23.160035',\n",
       "      'road': '',\n",
       "      'walk_type': 0},\n",
       "     {'action': '右转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 73,\n",
       "      'duration': 18,\n",
       "      'instruction': '向西南骑行73米右转',\n",
       "      'orientation': '西南',\n",
       "      'polyline': '113.327522,23.16003;113.327396,23.1599;113.327396,23.1599;113.327183,23.159674;113.327183,23.159674;113.327135,23.159622;113.327148,23.159544;113.327148,23.159544;113.327161,23.159492',\n",
       "      'road': '',\n",
       "      'walk_type': 0},\n",
       "     {'action': '直行',\n",
       "      'assistant_action': '',\n",
       "      'distance': 1186,\n",
       "      'duration': 285,\n",
       "      'instruction': '沿燕岭路向西南骑行1186米直行',\n",
       "      'orientation': '西南',\n",
       "      'polyline': '113.327161,23.159488;113.327127,23.159453;113.327127,23.159453;113.326914,23.15924;113.326914,23.15924;113.326762,23.159097;113.326762,23.159097;113.326298,23.158698;113.326298,23.158698;113.326046,23.158633;113.325816,23.158472;113.324761,23.157834;113.324761,23.157834;113.324661,23.157765;113.324661,23.157765;113.324475,23.157639;113.324475,23.157639;113.323963,23.157292;113.323963,23.157292;113.323863,23.157235;113.323863,23.157235;113.323624,23.157075;113.323624,23.157075;113.323368,23.156923;113.323008,23.15668;113.322708,23.156445;113.322444,23.156211;113.322444,23.156211;113.322079,23.155881;113.322079,23.155881;113.32184,23.155655;113.32184,23.155655;113.32168,23.155512;113.32168,23.155512;113.321367,23.155208;113.321163,23.155048;113.321163,23.155048;113.32043,23.154562;113.32043,23.154562;113.319774,23.154223;113.319774,23.154223;113.319362,23.154028;113.319362,23.154028;113.318989,23.153841;113.318989,23.153841;113.318637,23.153689;113.318329,23.153581;113.318329,23.153581;113.317865,23.153485;113.317865,23.153485;113.317661,23.153451',\n",
       "      'road': '燕岭路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '左转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 15,\n",
       "      'duration': 4,\n",
       "      'instruction': '沿广园东路辅路向西骑行15米左转',\n",
       "      'orientation': '西',\n",
       "      'polyline': '113.317656,23.153446;113.317513,23.153446',\n",
       "      'road': '广园东路辅路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '左转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 202,\n",
       "      'duration': 48,\n",
       "      'instruction': '沿禺东西路辅路向西南骑行202米左转',\n",
       "      'orientation': '西南',\n",
       "      'polyline': '113.317509,23.153446;113.317279,23.153234;113.317279,23.153234;113.317209,23.153134;113.317209,23.153134;113.316254,23.152648;113.316254,23.152648;113.316124,23.152582;113.316124,23.152582;113.316003,23.152526;113.316003,23.152526;113.315872,23.152461',\n",
       "      'road': '禺东西路辅路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '左转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 27,\n",
       "      'duration': 6,\n",
       "      'instruction': '骑行27米左转',\n",
       "      'orientation': '',\n",
       "      'polyline': '113.315868,23.152457;113.316016,23.152253',\n",
       "      'road': '',\n",
       "      'walk_type': 1},\n",
       "     {'action': '直行',\n",
       "      'assistant_action': '',\n",
       "      'distance': 10,\n",
       "      'duration': 2,\n",
       "      'instruction': '沿禺东西路辅路向东北骑行10米直行',\n",
       "      'orientation': '东北',\n",
       "      'polyline': '113.316016,23.152248;113.316085,23.152326',\n",
       "      'road': '禺东西路辅路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '右转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 74,\n",
       "      'duration': 18,\n",
       "      'instruction': '沿禺东西路向东北骑行74米右转',\n",
       "      'orientation': '东北',\n",
       "      'polyline': '113.316085,23.152326;113.316701,23.152682',\n",
       "      'road': '禺东西路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '向右前方行驶',\n",
       "      'assistant_action': '',\n",
       "      'distance': 915,\n",
       "      'duration': 220,\n",
       "      'instruction': '沿林和西路向东南骑行915米向右前方行驶',\n",
       "      'orientation': '东南',\n",
       "      'polyline': '113.316701,23.152682;113.316892,23.152626;113.316892,23.152626;113.317096,23.152626;113.317096,23.152626;113.317365,23.152622;113.31799,23.152526;113.31799,23.152526;113.319136,23.152331;113.319692,23.152253;113.319692,23.152253;113.320243,23.152205;113.320456,23.152157;113.320456,23.152157;113.320898,23.151992;113.320898,23.151992;113.321918,23.151536;113.322409,23.151259;113.322561,23.151133;113.322561,23.151133;113.322669,23.151076;113.322713,23.151029;113.32283,23.150673;113.32283,23.150673;113.32286,23.15056;113.323277,23.149813;113.323277,23.149813;113.323576,23.149323;113.323576,23.149323;113.323589,23.149297;113.323589,23.149297;113.323776,23.148928;113.323828,23.148889',\n",
       "      'road': '林和西路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '向右前方行驶',\n",
       "      'assistant_action': '',\n",
       "      'distance': 640,\n",
       "      'duration': 154,\n",
       "      'instruction': '沿林和西路向南骑行640米向右前方行驶',\n",
       "      'orientation': '南',\n",
       "      'polyline': '113.323828,23.148885;113.323837,23.148759;113.323837,23.148759;113.323837,23.148624;113.323837,23.148624;113.323837,23.148568;113.323837,23.148568;113.323837,23.148242;113.323837,23.148242;113.323837,23.148125;113.323837,23.148125;113.323837,23.147886;113.323837,23.147886;113.323832,23.147218;113.323832,23.147218;113.323837,23.146914;113.323837,23.146914;113.323837,23.146484;113.323837,23.146484;113.323837,23.146011;113.323837,23.146011;113.323837,23.145786;113.323837,23.145786;113.323872,23.145117;113.323872,23.145117;113.32388,23.144536;113.32388,23.144536;113.32388,23.143559;113.32388,23.143559;113.32388,23.143281;113.32388,23.143281;113.32388,23.143034',\n",
       "      'road': '林和西路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '右转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 192,\n",
       "      'duration': 46,\n",
       "      'instruction': '沿林和西路向南骑行192米右转',\n",
       "      'orientation': '南',\n",
       "      'polyline': '113.32388,23.14303;113.323815,23.142847;113.323819,23.142344;113.323819,23.142344;113.323819,23.142227;113.323819,23.142227;113.323819,23.141984;113.323819,23.141984;113.323819,23.141892;113.323819,23.141892;113.323815,23.141549;113.323815,23.141549;113.323819,23.141289',\n",
       "      'road': '林和西路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '左转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 229,\n",
       "      'duration': 55,\n",
       "      'instruction': '沿天河北路向西骑行229米左转',\n",
       "      'orientation': '西',\n",
       "      'polyline': '113.323819,23.141285;113.323138,23.141254;113.323138,23.141254;113.32303,23.14125;113.32303,23.14125;113.322543,23.141224;113.322543,23.141224;113.322114,23.141198;113.322114,23.141198;113.322023,23.141194;113.322023,23.141194;113.321849,23.141189;113.321849,23.141189;113.321688,23.141185;113.321688,23.141185;113.321558,23.141181',\n",
       "      'road': '天河北路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '右转',\n",
       "      'assistant_action': None,\n",
       "      'distance': 808,\n",
       "      'duration': 194,\n",
       "      'instruction': '沿体育西路向南骑行808米右转',\n",
       "      'orientation': '南',\n",
       "      'polyline': '113.321554,23.141176;113.321562,23.141076;113.321562,23.141076;113.321506,23.140937;113.321506,23.140794;113.321506,23.140794;113.321506,23.140386;113.321506,23.140386;113.321489,23.139922;113.321489,23.139922;113.321489,23.139627;113.321489,23.139627;113.321489,23.139601;113.321489,23.139601;113.321489,23.139193;113.321489,23.139193;113.32148,23.138819;113.32148,23.138819;113.321502,23.137882;113.321502,23.137882;113.321506,23.137036;113.321506,23.137036;113.321523,23.136476;113.321523,23.136476;113.321523,23.135985;113.321523,23.135985;113.321523,23.135369;113.321523,23.135369;113.321523,23.135343;113.321523,23.135343;113.321523,23.135299;113.321523,23.135299;113.321489,23.134501;113.321445,23.134123;113.321445,23.134123;113.321419,23.134023;113.321315,23.133845',\n",
       "      'road': '体育西路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '左转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 364,\n",
       "      'duration': 87,\n",
       "      'instruction': '沿天河路向西骑行364米左转',\n",
       "      'orientation': '西',\n",
       "      'polyline': '113.321311,23.133841;113.321228,23.133885;113.321198,23.133885;113.321198,23.133885;113.320221,23.133937;113.320221,23.133937;113.319401,23.13398;113.319401,23.13398;113.318468,23.134045;113.318468,23.134045;113.317873,23.134084;113.317873,23.134084;113.317752,23.134089',\n",
       "      'road': '天河路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '左转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 48,\n",
       "      'duration': 12,\n",
       "      'instruction': '骑行48米左转',\n",
       "      'orientation': '',\n",
       "      'polyline': '113.317747,23.134089;113.317582,23.133685',\n",
       "      'road': '',\n",
       "      'walk_type': 1},\n",
       "     {'action': '右转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 410,\n",
       "      'duration': 98,\n",
       "      'instruction': '沿广和路向西南骑行410米右转',\n",
       "      'orientation': '西南',\n",
       "      'polyline': '113.317578,23.133676;113.317635,23.133676;113.317635,23.133676;113.317582,23.133576;113.317582,23.133576;113.317431,23.133273;113.317431,23.133273;113.317287,23.133021;113.317287,23.133021;113.31717,23.132821;113.31717,23.132821;113.316918,23.132348;113.316918,23.132348;113.316758,23.132044;113.316758,23.132044;113.316654,23.131871;113.316654,23.131871;113.316415,23.131454;113.316415,23.131454;113.316324,23.131267;113.316324,23.131267;113.316072,23.130816;113.316072,23.130816;113.31602,23.130707;113.31602,23.130707;113.315981,23.130642;113.315981,23.130642;113.315838,23.130369',\n",
       "      'road': '广和路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '左转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 26,\n",
       "      'duration': 6,\n",
       "      'instruction': '沿广和路向西骑行26米左转',\n",
       "      'orientation': '西',\n",
       "      'polyline': '113.315833,23.130365;113.315586,23.130404',\n",
       "      'road': '广和路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '向右前方行驶',\n",
       "      'assistant_action': None,\n",
       "      'distance': 49,\n",
       "      'duration': 12,\n",
       "      'instruction': '沿广州大道中辅路向南骑行49米向右前方行驶',\n",
       "      'orientation': '南',\n",
       "      'polyline': '113.315582,23.130404;113.315603,23.130143;113.315599,23.129961',\n",
       "      'road': '广州大道中辅路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '右转',\n",
       "      'assistant_action': None,\n",
       "      'distance': 168,\n",
       "      'duration': 40,\n",
       "      'instruction': '沿中山一立交骑行168米右转',\n",
       "      'orientation': '',\n",
       "      'polyline': '113.315595,23.129957;113.315395,23.130022;113.315195,23.130022;113.315195,23.130022;113.315113,23.13;113.315113,23.13;113.315022,23.129935;113.315022,23.129935;113.314961,23.129887;113.314883,23.129792;113.314831,23.129661;113.314813,23.12957;113.314813,23.12957;113.314805,23.129484;113.314805,23.129484;113.314805,23.129353;113.314857,23.129253;113.314857,23.129253;113.314948,23.129162;113.315039,23.12911',\n",
       "      'road': '中山一立交',\n",
       "      'walk_type': 0},\n",
       "     {'action': '直行',\n",
       "      'assistant_action': '',\n",
       "      'distance': 2992,\n",
       "      'duration': 718,\n",
       "      'instruction': '沿广州大道中向南骑行2992米直行',\n",
       "      'orientation': '南',\n",
       "      'polyline': '113.315039,23.129106;113.315048,23.128863;113.315048,23.128863;113.315022,23.128299;113.315022,23.128299;113.315013,23.127826;113.315013,23.127826;113.314996,23.127287;113.314996,23.127287;113.315017,23.127083;113.315017,23.127083;113.315078,23.12701;113.315078,23.12701;113.315143,23.126875;113.315143,23.126875;113.315182,23.12681;113.315182,23.12681;113.315213,23.126567;113.315213,23.126567;113.315213,23.126541;113.315213,23.126541;113.315187,23.126107;113.315187,23.126107;113.315187,23.125985;113.315187,23.125985;113.315148,23.125521;113.315148,23.125521;113.315135,23.124931;113.315135,23.124931;113.315135,23.124466;113.315135,23.124466;113.315126,23.12418;113.315126,23.12418;113.315113,23.123867;113.315113,23.123867;113.315095,23.123464;113.315095,23.123464;113.315095,23.123286;113.315095,23.123286;113.315087,23.122912;113.315087,23.122912;113.315043,23.12273;113.315004,23.121984;113.315004,23.121984;113.315004,23.121957;113.315004,23.121957;113.314974,23.120903;113.314974,23.120903;113.314965,23.120673;113.314965,23.120673;113.314965,23.120404;113.314965,23.120404;113.314965,23.120382;113.314965,23.120382;113.314965,23.120347;113.314965,23.120347;113.314965,23.120252;113.314965,23.120252;113.314965,23.119931;113.314965,23.119931;113.314961,23.119805;113.314961,23.119805;113.314961,23.119388;113.314961,23.119388;113.314961,23.119249;113.314961,23.119249;113.314961,23.119227;113.314961,23.119227;113.314961,23.119136;113.314961,23.119136;113.314961,23.118793;113.314961,23.118793;113.31497,23.118277;113.31497,23.118277;113.314987,23.117852;113.314987,23.117852;113.314991,23.117153;113.314991,23.117153;113.315,23.11694;113.315,23.11694;113.315052,23.116814;113.315052,23.116814;113.315091,23.116701;113.315091,23.116701;113.315087,23.116341;113.315087,23.116341;113.315065,23.115955;113.315065,23.115955;113.315052,23.114835;113.315052,23.114835;113.315052,23.114319;113.315052,23.114319;113.315052,23.113672;113.315052,23.113672;113.315052,23.113446;113.315052,23.113446;113.315078,23.111549;113.315078,23.111549;113.315078,23.111476;113.315078,23.111476;113.315082,23.111189;113.315082,23.111189;113.315109,23.11059;113.315139,23.11026;113.315139,23.11026;113.315269,23.109579;113.315269,23.109579;113.315273,23.10954;113.315273,23.10954;113.315321,23.109319;113.315321,23.109319;113.31536,23.109115;113.31536,23.109115;113.315742,23.107179;113.315742,23.107179;113.315994,23.105881;113.315994,23.105881;113.316046,23.105378;113.316085,23.104488;113.316085,23.104488;113.316085,23.104414;113.316085,23.104414;113.316033,23.103602;113.31582,23.102769;113.31582,23.102769;113.31572,23.102044',\n",
       "      'road': '广州大道中',\n",
       "      'walk_type': 0},\n",
       "     {'action': '向左前方行驶',\n",
       "      'assistant_action': '',\n",
       "      'distance': 682,\n",
       "      'duration': 164,\n",
       "      'instruction': '沿广州大道南向南骑行682米向左前方行驶',\n",
       "      'orientation': '南',\n",
       "      'polyline': '113.315716,23.10204;113.315716,23.101992;113.315716,23.101992;113.315629,23.10128;113.315629,23.10128;113.315608,23.101102;113.315608,23.101102;113.315525,23.100343;113.315525,23.100343;113.315456,23.09977;113.315456,23.09977;113.315417,23.099501;113.315417,23.099501;113.315369,23.099201;113.315369,23.099201;113.315317,23.098607;113.315317,23.098607;113.315217,23.097656;113.315217,23.097656;113.315187,23.097352;113.315187,23.097352;113.315095,23.097196;113.315095,23.097196;113.315087,23.096979;113.315087,23.096979;113.315087,23.09668;113.315087,23.09668;113.315087,23.096402;113.315074,23.096293;113.315052,23.096228;113.314991,23.096128;113.314991,23.096128;113.314822,23.095985',\n",
       "      'road': '广州大道南',\n",
       "      'walk_type': 0},\n",
       "     {'action': '左转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 51,\n",
       "      'duration': 12,\n",
       "      'instruction': '沿广州大道南向南骑行51米左转',\n",
       "      'orientation': '南',\n",
       "      'polyline': '113.314818,23.095981;113.314805,23.095516',\n",
       "      'road': '广州大道南',\n",
       "      'walk_type': 0},\n",
       "     {'action': '直行',\n",
       "      'assistant_action': '',\n",
       "      'distance': 2352,\n",
       "      'duration': 564,\n",
       "      'instruction': '沿新港中路向东骑行2352米直行',\n",
       "      'orientation': '东',\n",
       "      'polyline': '113.3148,23.095512;113.315122,23.095638;113.315291,23.095668;113.315421,23.095647;113.315534,23.095595;113.315747,23.095543;113.315747,23.095543;113.315833,23.09559;113.315894,23.095608;113.316137,23.095621;113.316137,23.095621;113.316649,23.095655;113.316649,23.095655;113.317244,23.095729;113.317426,23.095781;113.317426,23.095781;113.318168,23.095924;113.318168,23.095924;113.31829,23.096007;113.31829,23.096007;113.318989,23.096081;113.318989,23.096081;113.319297,23.096111;113.319297,23.096111;113.319501,23.096124;113.319501,23.096124;113.319844,23.096137;113.319844,23.096137;113.320052,23.096137;113.320052,23.096137;113.320091,23.096137;113.320091,23.096137;113.320716,23.096141;113.320716,23.096141;113.320751,23.096141;113.320751,23.096141;113.320998,23.096146;113.320998,23.096146;113.322326,23.096159;113.322326,23.096159;113.322782,23.096163;113.322782,23.096163;113.322973,23.096168;113.322973,23.096168;113.323911,23.096176;113.323911,23.096176;113.324484,23.096176;113.324484,23.096176;113.324939,23.096189;113.324939,23.096189;113.325195,23.096194;113.325195,23.096194;113.327383,23.096211;113.327383,23.096211;113.327444,23.096211;113.327444,23.096211;113.328885,23.096233;113.328885,23.096233;113.329779,23.096233;113.329779,23.096233;113.329931,23.096224;113.329931,23.096224;113.3301,23.096211;113.3301,23.096211;113.330747,23.096155;113.330747,23.096155;113.331428,23.096098;113.331428,23.096098;113.332556,23.095994;113.332556,23.095994;113.332817,23.095977;113.332817,23.095977;113.333069,23.095959;113.333069,23.095959;113.333273,23.095938;113.333273,23.095938;113.333381,23.095924;113.333381,23.095924;113.333607,23.095903;113.333607,23.095903;113.333898,23.095872;113.333898,23.095872;113.334045,23.095859;113.334045,23.095859;113.33428,23.095846;113.33428,23.095846;113.334614,23.095825;113.3348,23.095829;113.3348,23.095829;113.335035,23.095872;113.335243,23.095933;113.335425,23.096007;113.335668,23.096146;113.335668,23.096146;113.33572,23.096185;113.33572,23.096185;113.335868,23.096285;113.335868,23.096285;113.336072,23.09648;113.336072,23.09648;113.336293,23.096736;113.336914,23.097617',\n",
       "      'road': '新港中路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '右转',\n",
       "      'assistant_action': None,\n",
       "      'distance': 1116,\n",
       "      'duration': 268,\n",
       "      'instruction': '沿新港东路向东骑行1116米右转',\n",
       "      'orientation': '东',\n",
       "      'polyline': '113.336914,23.097617;113.33701,23.097743;113.33701,23.097743;113.337166,23.097899;113.337522,23.098168;113.337522,23.098168;113.337682,23.098264;113.337982,23.09839;113.337982,23.09839;113.338316,23.098485;113.338646,23.098529;113.338646,23.098529;113.339362,23.098537;113.339362,23.098537;113.340009,23.098542;113.340009,23.098542;113.340946,23.098542;113.340946,23.098542;113.341298,23.09855;113.341298,23.09855;113.341345,23.09855;113.341345,23.09855;113.34161,23.098555;113.34161,23.098555;113.341923,23.098555;113.341923,23.098555;113.34204,23.098559;113.34204,23.098559;113.342543,23.098559;113.342543,23.098559;113.342865,23.098559;113.342865,23.098559;113.343086,23.098559;113.343086,23.098559;113.343594,23.098568;113.343594,23.098568;113.343715,23.098568;113.343715,23.098568;113.343802,23.098568;113.343802,23.098568;113.344063,23.098568;113.344063,23.098568;113.344197,23.098568;113.344197,23.098568;113.345265,23.098576;113.345265,23.098576;113.345425,23.098576;113.345425,23.098576;113.345625,23.098576;113.345625,23.098576;113.345977,23.098581;113.345977,23.098581;113.34625,23.098585;113.34625,23.098585;113.346771,23.098594;113.346771,23.098594;113.347027,23.098594;113.347027,23.098594;113.347591,23.098598',\n",
       "      'road': '新港东路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '向左前方行驶',\n",
       "      'assistant_action': '',\n",
       "      'distance': 48,\n",
       "      'duration': 12,\n",
       "      'instruction': '沿畔江外街向南骑行48米向左前方行驶',\n",
       "      'orientation': '南',\n",
       "      'polyline': '113.347591,23.098598;113.34763,23.098407;113.347622,23.098338;113.347565,23.098177',\n",
       "      'road': '畔江外街',\n",
       "      'walk_type': 0},\n",
       "     {'action': '右转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 76,\n",
       "      'duration': 18,\n",
       "      'instruction': '向南骑行76米右转',\n",
       "      'orientation': '南',\n",
       "      'polyline': '113.347561,23.098173;113.347561,23.09803;113.347561,23.09803;113.347561,23.097786;113.347561,23.097786;113.347561,23.097613;113.347561,23.097613;113.347561,23.097474',\n",
       "      'road': '',\n",
       "      'walk_type': 0},\n",
       "     {'action': '左转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 65,\n",
       "      'duration': 16,\n",
       "      'instruction': '向西骑行65米左转',\n",
       "      'orientation': '西',\n",
       "      'polyline': '113.347556,23.09747;113.347261,23.097478;113.347261,23.097478;113.346918,23.097487',\n",
       "      'road': '',\n",
       "      'walk_type': 0},\n",
       "     {'action': '左转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 94,\n",
       "      'duration': 23,\n",
       "      'instruction': '沿金运路向南骑行94米左转',\n",
       "      'orientation': '南',\n",
       "      'polyline': '113.346914,23.097487;113.34691,23.097192;113.34691,23.097192;113.34691,23.096879;113.34691,23.096879;113.34691,23.096793;113.34691,23.096793;113.34691,23.096628',\n",
       "      'road': '金运路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '向右前方行驶',\n",
       "      'assistant_action': '',\n",
       "      'distance': 23,\n",
       "      'duration': 6,\n",
       "      'instruction': '沿金运路向东骑行23米向右前方行驶',\n",
       "      'orientation': '东',\n",
       "      'polyline': '113.346905,23.096623;113.346992,23.096606;113.346992,23.096606;113.347144,23.096571',\n",
       "      'road': '金运路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '左转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 148,\n",
       "      'duration': 36,\n",
       "      'instruction': '沿金运路向南骑行148米左转',\n",
       "      'orientation': '南',\n",
       "      'polyline': '113.347144,23.096567;113.347196,23.096532;113.347214,23.096441;113.347214,23.096441;113.347227,23.095247',\n",
       "      'road': '金运路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '左转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 356,\n",
       "      'duration': 85,\n",
       "      'instruction': '沿苏沙西路向东骑行356米左转',\n",
       "      'orientation': '东',\n",
       "      'polyline': '113.347227,23.095243;113.347287,23.095213;113.347378,23.095204;113.349453,23.095451;113.350677,23.09553',\n",
       "      'road': '苏沙西路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '左转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 154,\n",
       "      'duration': 37,\n",
       "      'instruction': '沿苏沙路向东北骑行154米左转',\n",
       "      'orientation': '东北',\n",
       "      'polyline': '113.350677,23.09553;113.350673,23.095742;113.35069,23.095812;113.350742,23.09589;113.35089,23.09599;113.351155,23.096037;113.351554,23.096072;113.351706,23.096063;113.351736,23.09605;113.351758,23.096011',\n",
       "      'road': '苏沙路',\n",
       "      'walk_type': 0},\n",
       "     {'action': '右转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 412,\n",
       "      'duration': 99,\n",
       "      'instruction': '向东骑行412米右转',\n",
       "      'orientation': '东',\n",
       "      'polyline': '113.351758,23.096007;113.351866,23.096046;113.351918,23.096055;113.352088,23.096033;113.352292,23.096098;113.352661,23.096141;113.353316,23.096168;113.354084,23.096172;113.354457,23.096155;113.354766,23.096128;113.355191,23.09605;113.355191,23.09605;113.355734,23.095938',\n",
       "      'road': '',\n",
       "      'walk_type': 0},\n",
       "     {'action': '右转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 69,\n",
       "      'duration': 17,\n",
       "      'instruction': '向东南骑行69米右转',\n",
       "      'orientation': '东南',\n",
       "      'polyline': '113.355734,23.095933;113.355794,23.095608;113.355855,23.095564;113.356094,23.09553',\n",
       "      'road': '',\n",
       "      'walk_type': 0},\n",
       "     {'action': '右转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 419,\n",
       "      'duration': 101,\n",
       "      'instruction': '向南骑行419米右转',\n",
       "      'orientation': '南',\n",
       "      'polyline': '113.356094,23.095525;113.356146,23.094961;113.356146,23.094961;113.356168,23.094757;113.356224,23.094544;113.356224,23.094544;113.356328,23.093772;113.356328,23.093772;113.356406,23.093194;113.35651,23.092565;113.35651,23.092565;113.356528,23.092452;113.356549,23.092391;113.356597,23.092326;113.356649,23.092287;113.357161,23.092109',\n",
       "      'road': '',\n",
       "      'walk_type': 0},\n",
       "     {'action': '右转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 34,\n",
       "      'duration': 8,\n",
       "      'instruction': '向南骑行34米右转',\n",
       "      'orientation': '南',\n",
       "      'polyline': '113.357161,23.092105;113.357105,23.091927;113.357049,23.091814',\n",
       "      'road': '',\n",
       "      'walk_type': 0},\n",
       "     {'action': '向右后方行驶',\n",
       "      'assistant_action': '',\n",
       "      'distance': 251,\n",
       "      'duration': 60,\n",
       "      'instruction': '向西南骑行251米向右后方行驶',\n",
       "      'orientation': '西南',\n",
       "      'polyline': '113.357044,23.09181;113.356953,23.091849;113.356562,23.091914;113.35612,23.091944;113.355998,23.091944;113.355777,23.091879;113.355729,23.091827;113.355477,23.091198;113.355282,23.09092',\n",
       "      'road': '',\n",
       "      'walk_type': 0},\n",
       "     {'action': '左转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 258,\n",
       "      'duration': 62,\n",
       "      'instruction': '向西骑行258米左转',\n",
       "      'orientation': '西',\n",
       "      'polyline': '113.355278,23.090916;113.355256,23.091003;113.355256,23.091003;113.355204,23.091463;113.355143,23.091541;113.355082,23.091558;113.355004,23.091558;113.354527,23.091506;113.354527,23.091506;113.353837,23.091402;113.353615,23.091324;113.353411,23.091172',\n",
       "      'road': '',\n",
       "      'walk_type': 0},\n",
       "     {'action': '左转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 82,\n",
       "      'duration': 20,\n",
       "      'instruction': '向南骑行82米左转',\n",
       "      'orientation': '南',\n",
       "      'polyline': '113.353407,23.091168;113.353481,23.091011;113.353576,23.090447',\n",
       "      'road': '',\n",
       "      'walk_type': 0},\n",
       "     {'action': '左转',\n",
       "      'assistant_action': '',\n",
       "      'distance': 10,\n",
       "      'duration': 2,\n",
       "      'instruction': '骑行10米左转',\n",
       "      'orientation': '',\n",
       "      'polyline': '113.353576,23.090443;113.35362,23.09046;113.35362,23.09046;113.353672,23.090473',\n",
       "      'road': '',\n",
       "      'walk_type': 20},\n",
       "     {'action': '',\n",
       "      'assistant_action': '到达目的地',\n",
       "      'distance': 1,\n",
       "      'duration': 0,\n",
       "      'instruction': '骑行1米到达目的地',\n",
       "      'orientation': '',\n",
       "      'polyline': '113.353672,23.090473;113.353672,23.090473',\n",
       "      'road': '',\n",
       "      'walk_type': 0}]}]},\n",
       " 'errcode': 0,\n",
       " 'errdetail': None,\n",
       " 'errmsg': 'OK',\n",
       " 'ext': None}"
      ]
     },
     "execution_count": 11,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 调用geo.py文件中的cycle和geocode模块\n",
    "from geo import cycle,geocode\n",
    "# 调用驾车规划路径的函数\n",
    "骑行_plan = cycle(key,\"113.679287,23.632575\",\"113.354048,23.090160\")\n",
    "骑行_plan"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 4、行政区域查询\n",
    "* 行政区域查询是一类简单的HTTP接口，根据用户输入的搜索条件可以帮助用户快速的查找特定的行政区域信息。\n",
    "* 适用场景:用户希望通过得到行政区域信息，进行开发工作。  \n",
    "> URL:https://restapi.amap.com/v3/config/district?parameters"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'count': '1',\n",
       " 'suggestion': {'keywords': [], 'cities': []},\n",
       " 'districts': [{'citycode': '0762',\n",
       "   'adcode': '441600',\n",
       "   'name': '河源市',\n",
       "   'center': '114.697802,23.746266',\n",
       "   'level': 'city',\n",
       "   'districts': [{'citycode': '0762',\n",
       "     'adcode': '441624',\n",
       "     'name': '和平县',\n",
       "     'center': '114.941473,24.44318',\n",
       "     'level': 'district',\n",
       "     'districts': []},\n",
       "    {'citycode': '0762',\n",
       "     'adcode': '441622',\n",
       "     'name': '龙川县',\n",
       "     'center': '115.256415,24.101174',\n",
       "     'level': 'district',\n",
       "     'districts': []},\n",
       "    {'citycode': '0762',\n",
       "     'adcode': '441623',\n",
       "     'name': '连平县',\n",
       "     'center': '114.495952,24.364227',\n",
       "     'level': 'district',\n",
       "     'districts': []},\n",
       "    {'citycode': '0762',\n",
       "     'adcode': '441625',\n",
       "     'name': '东源县',\n",
       "     'center': '114.742711,23.789093',\n",
       "     'level': 'district',\n",
       "     'districts': []},\n",
       "    {'citycode': '0762',\n",
       "     'adcode': '441602',\n",
       "     'name': '源城区',\n",
       "     'center': '114.696828,23.746255',\n",
       "     'level': 'district',\n",
       "     'districts': []},\n",
       "    {'citycode': '0762',\n",
       "     'adcode': '441621',\n",
       "     'name': '紫金县',\n",
       "     'center': '115.184383,23.633744',\n",
       "     'level': 'district',\n",
       "     'districts': []}]}]}"
      ]
     },
     "execution_count": 12,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 调用geo.py文件中的行政区域查询模块\n",
    "from geo import district\n",
    "河源_区域查询 = district(key,\"河源\",\"0\")\n",
    "河源_区域查询"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 5、搜索POI\n",
    "* 搜索服务API是一类简单的HTTP接口，提供多种查询POI信息的能力，其中包括关键字搜索、周边搜索、多边形搜索、ID查询四种筛选机制。\n",
    "* 注意：在此接口之中，您可以通过city&citylimit参数指定希望搜索的城市或区县。而city参数能够接收citycode和adcode，citycode仅能精确到城市，而adcode却能够精确到区县。\n",
    "* 适用场景\n",
    "> 关键字搜索：通过用POI的关键字进行条件搜索，例如：肯德基、朝阳公园等；同时支持设置POI类型搜索，例如：银行  \n",
    "> 周边搜索：在用户传入经纬度坐标点附近，在设定的范围内，按照关键字或POI类型搜索；  \n",
    "> 多边形搜索：在多边形区域内进行搜索  \n",
    "> ID查询：通过POI ID，查询某个POI详情，建议可同输入提示API配合使用  "
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 5.1 关键字搜索\n",
    "> URL:https://restapi.amap.com/v3/place/text?parameters"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'suggestion': {'keywords': [], 'cities': []},\n",
       " 'count': '698',\n",
       " 'infocode': '10000',\n",
       " 'pois': [{'parent': [],\n",
       "   'address': '大同路与沿江中路交叉口东南100米',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'tour',\n",
       "   'cityname': '河源市',\n",
       "   'type': '风景名胜;风景名胜;风景名胜',\n",
       "   'photos': [],\n",
       "   'typecode': '110200',\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '源城区',\n",
       "   'name': '亚洲第一高喷泉',\n",
       "   'location': '114.695616,23.743194',\n",
       "   'tel': '0762-3310383;15107629141',\n",
       "   'shopid': [],\n",
       "   'id': 'B02FA003C5'},\n",
       "  {'parent': 'B02FA02H3O',\n",
       "   'address': '新港镇港中路17号',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'tour',\n",
       "   'cityname': '河源市',\n",
       "   'type': '风景名胜;风景名胜;国家级景点',\n",
       "   'photos': [],\n",
       "   'typecode': '110202',\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'childtype': '301',\n",
       "   'adname': '东源县',\n",
       "   'name': '万绿湖风景区',\n",
       "   'location': '114.631793,23.774255',\n",
       "   'tel': '0762-8780005;0762-8780002',\n",
       "   'shopid': [],\n",
       "   'id': 'B02FA01VHK'},\n",
       "  {'parent': [],\n",
       "   'address': '客家公园西路',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'tour',\n",
       "   'cityname': '河源市',\n",
       "   'type': '风景名胜;公园广场;公园',\n",
       "   'photos': [],\n",
       "   'typecode': '110101',\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '源城区',\n",
       "   'name': '客家文化公园',\n",
       "   'location': '114.706977,23.771932',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B02FA0OM4Z'},\n",
       "  {'parent': 'B02FA0OM4Z',\n",
       "   'address': '中山大道北53号附近',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'tour',\n",
       "   'cityname': '河源市',\n",
       "   'type': '风景名胜;公园广场;公园',\n",
       "   'photos': [],\n",
       "   'typecode': '110101',\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'childtype': '301',\n",
       "   'adname': '源城区',\n",
       "   'name': '客家文化公园-河源市儿童公园',\n",
       "   'location': '114.707607,23.763591',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFGCML0R'},\n",
       "  {'parent': [],\n",
       "   'address': '佗城镇学宫旁',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'tour',\n",
       "   'cityname': '河源市',\n",
       "   'type': '风景名胜;风景名胜;风景名胜',\n",
       "   'photos': [],\n",
       "   'typecode': '110200',\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '龙川县',\n",
       "   'name': '佗城',\n",
       "   'location': '115.19006,24.059724',\n",
       "   'tel': '0762-6683882;12301',\n",
       "   'shopid': [],\n",
       "   'id': 'B02FA01S2U'},\n",
       "  {'parent': [],\n",
       "   'address': '人民路74号',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'tour',\n",
       "   'cityname': '河源市',\n",
       "   'type': '风景名胜;公园广场;公园',\n",
       "   'photos': [],\n",
       "   'typecode': '110101',\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '源城区',\n",
       "   'name': '鳄湖公园',\n",
       "   'location': '114.698028,23.736779',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B02FA019LC'},\n",
       "  {'parent': [],\n",
       "   'address': '157县道',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'tour',\n",
       "   'cityname': '河源市',\n",
       "   'type': '风景名胜;风景名胜;教堂',\n",
       "   'photos': [],\n",
       "   'typecode': '110206',\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '紫金县',\n",
       "   'name': '热水福音堂',\n",
       "   'location': '115.110043,23.448071',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B02FA015R6'},\n",
       "  {'parent': [],\n",
       "   'address': '327乡道西50米',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'tour',\n",
       "   'cityname': '河源市',\n",
       "   'type': '风景名胜;风景名胜;风景名胜',\n",
       "   'photos': [],\n",
       "   'typecode': '110200',\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '紫金县',\n",
       "   'name': '越王山风景区',\n",
       "   'location': '114.745358,23.497590',\n",
       "   'tel': '0762-7161899;0762-7161708',\n",
       "   'shopid': [],\n",
       "   'id': 'B02FA01O78'},\n",
       "  {'parent': [],\n",
       "   'address': '新丰江森林公园内',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'tour',\n",
       "   'cityname': '河源市',\n",
       "   'type': '风景名胜;风景名胜;国家级景点',\n",
       "   'photos': [],\n",
       "   'typecode': '110202',\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '东源县',\n",
       "   'name': '桂山',\n",
       "   'location': '114.594361,23.721955',\n",
       "   'tel': '0762-8771088;0762-8782222',\n",
       "   'shopid': [],\n",
       "   'id': 'B02FA01QZ8'},\n",
       "  {'parent': [],\n",
       "   'address': '旺业街与沿江东路交汇处东100米',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'tour',\n",
       "   'cityname': '河源市',\n",
       "   'type': '风景名胜;公园广场;城市广场',\n",
       "   'photos': [],\n",
       "   'typecode': '110105',\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '源城区',\n",
       "   'name': '河源文化广场',\n",
       "   'location': '114.708573,23.740893',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B02FA00FA4'},\n",
       "  {'parent': [],\n",
       "   'address': '205国道西100米',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'tour',\n",
       "   'cityname': '河源市',\n",
       "   'type': '风景名胜;公园广场;公园广场',\n",
       "   'photos': [],\n",
       "   'typecode': '110100',\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '东源县',\n",
       "   'name': '文化广场',\n",
       "   'location': '114.819561,23.909510',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B02FA02AV9'},\n",
       "  {'parent': [],\n",
       "   'address': '罗坑',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'tour',\n",
       "   'cityname': '河源市',\n",
       "   'type': '风景名胜;风景名胜;风景名胜',\n",
       "   'photos': [],\n",
       "   'typecode': '110200',\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '源城区',\n",
       "   'name': '野趣沟旅游区',\n",
       "   'location': '114.624776,23.709737',\n",
       "   'tel': '0762-3838111',\n",
       "   'shopid': [],\n",
       "   'id': 'B02FA01QZ7'},\n",
       "  {'parent': [],\n",
       "   'address': '长深高速公路',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'tour',\n",
       "   'cityname': '河源市',\n",
       "   'type': '风景名胜;风景名胜;寺庙道观',\n",
       "   'photos': [],\n",
       "   'typecode': '110205',\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '龙川县',\n",
       "   'name': '高明寺(千年古刹)(装修中)',\n",
       "   'location': '115.251010,24.078805',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFGAMHDG'},\n",
       "  {'parent': [],\n",
       "   'address': '客天下路1号',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'tour',\n",
       "   'cityname': '河源市',\n",
       "   'type': '风景名胜;风景名胜;国家级景点',\n",
       "   'photos': [],\n",
       "   'typecode': '110202',\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '源城区',\n",
       "   'name': '客天下国际旅游度假区',\n",
       "   'location': '114.627392,23.626471',\n",
       "   'tel': '0762-3496666;0762-34962111;0762-3496277;0762-3496289;0762-3496288',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFGHNYUA'},\n",
       "  {'parent': [],\n",
       "   'address': '环城南路',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'tour',\n",
       "   'cityname': '河源市',\n",
       "   'type': '风景名胜;公园广场;公园',\n",
       "   'photos': [],\n",
       "   'typecode': '110101',\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '源城区',\n",
       "   'name': '人民公园',\n",
       "   'location': '114.701730,23.734990',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B02FA00CBE'},\n",
       "  {'parent': [],\n",
       "   'address': '田心镇东江村',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'tour',\n",
       "   'cityname': '河源市',\n",
       "   'type': '风景名胜;风景名胜;省级景点',\n",
       "   'photos': [],\n",
       "   'typecode': '110203',\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '龙川县',\n",
       "   'name': '霍山风景区',\n",
       "   'location': '115.529952,24.236172',\n",
       "   'tel': '0762-6481602',\n",
       "   'shopid': [],\n",
       "   'id': 'B02FA01R25'},\n",
       "  {'parent': [],\n",
       "   'address': '老隆镇',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'tour',\n",
       "   'cityname': '河源市',\n",
       "   'type': '风景名胜;风景名胜;风景名胜',\n",
       "   'photos': [],\n",
       "   'typecode': '110200',\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '龙川县',\n",
       "   'name': '水坑',\n",
       "   'location': '115.263925,24.089666',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B02FA01L7B'},\n",
       "  {'parent': 'B0FFIOBR8Z',\n",
       "   'address': '热水镇南湖村和平温泉之都旅游区内',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'tour',\n",
       "   'cityname': '河源市',\n",
       "   'type': '风景名胜;风景名胜;风景名胜',\n",
       "   'photos': [],\n",
       "   'typecode': '110200',\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'childtype': '301',\n",
       "   'adname': '和平县',\n",
       "   'name': '热水漂流',\n",
       "   'location': '114.827998,24.413460',\n",
       "   'tel': '0762-5169888',\n",
       "   'shopid': [],\n",
       "   'id': 'B02FA01R0H'},\n",
       "  {'parent': [],\n",
       "   'address': '439乡道附近',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'tour',\n",
       "   'cityname': '河源市',\n",
       "   'type': '风景名胜;公园广场;城市广场',\n",
       "   'photos': [],\n",
       "   'typecode': '110105',\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '东源县',\n",
       "   'name': '文化广场',\n",
       "   'location': '114.969558,24.194803',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B02FA01PLY'},\n",
       "  {'parent': [],\n",
       "   'address': '大同路与沿江中路家口东100米',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': 'tour',\n",
       "   'cityname': '河源市',\n",
       "   'type': '风景名胜;公园广场;公园',\n",
       "   'photos': [],\n",
       "   'typecode': '110101',\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '源城区',\n",
       "   'name': '茶山公园',\n",
       "   'location': '114.697469,23.744847',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B02FA00B09'}],\n",
       " 'status': '1',\n",
       " 'info': 'OK'}"
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 调用geo.py文件中的关键字搜索模块\n",
    "from geo import poi_keywords\n",
    "河源_keywords = poi_keywords(key,\"河源旅游景点\")\n",
    "河源_keywords"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 5.2 周边搜索\n",
    "> URL:https://restapi.amap.com/v3/place/around?parameters "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'count': '1',\n",
       " 'geocodes': [{'formatted_address': '广东省河源市',\n",
       "   'country': '中国',\n",
       "   'province': '广东省',\n",
       "   'citycode': '0762',\n",
       "   'city': '河源市',\n",
       "   'district': [],\n",
       "   'township': [],\n",
       "   'neighborhood': {'name': [], 'type': []},\n",
       "   'building': {'name': [], 'type': []},\n",
       "   'adcode': '441600',\n",
       "   'street': [],\n",
       "   'number': [],\n",
       "   'location': '114.700447,23.743538',\n",
       "   'level': '市'}]}"
      ]
     },
     "execution_count": 14,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 调用地理编码的函数获取河源的地理编码\n",
    "from geo import geocode\n",
    "河源_geo = geocode(key,\"广东省河源市\") \n",
    "河源_geo"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'suggestion': {'keywords': [], 'cities': []},\n",
       " 'count': '858',\n",
       " 'infocode': '10000',\n",
       " 'pois': [{'parent': [],\n",
       "   'address': '百盛广场一楼',\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'name': '酢之味',\n",
       "   'location': '114.700446,23.743538',\n",
       "   'tel': '13318992173',\n",
       "   'shopid': [],\n",
       "   'id': 'B0G274CR5E'},\n",
       "  {'parent': [],\n",
       "   'address': '新紫路327号',\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'name': '紫金县乡下土特产有限公司',\n",
       "   'location': '114.700446,23.743538',\n",
       "   'tel': '13553291957',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFKTS77A'},\n",
       "  {'parent': [],\n",
       "   'address': '城中水岸1楼40号',\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'name': '薄荷甜品',\n",
       "   'location': '114.700446,23.743538',\n",
       "   'tel': '15218021326',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFKT7P3X'},\n",
       "  {'parent': [],\n",
       "   'address': '汇景苑9号',\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'name': '思品甜品店',\n",
       "   'location': '114.700446,23.743538',\n",
       "   'tel': '15920506907',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFKT075H'},\n",
       "  {'parent': [],\n",
       "   'address': '东风路56号',\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'type': '餐饮服务;甜品店;甜品店',\n",
       "   'photos': [],\n",
       "   'typecode': '050900',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'name': '爱上烘焙(-东风店)',\n",
       "   'location': '114.700446,23.743538',\n",
       "   'tel': '18200844387',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFKSXUEF'},\n",
       "  {'parent': [],\n",
       "   'address': [],\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'name': '茶兮谷',\n",
       "   'location': '114.700446,23.743538',\n",
       "   'tel': '18898724895',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFKSF4Q5'},\n",
       "  {'parent': [],\n",
       "   'address': '香江中路',\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'name': '简寿司',\n",
       "   'location': '114.700446,23.743538',\n",
       "   'tel': '13043422042',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFKSB8NU'},\n",
       "  {'parent': [],\n",
       "   'address': '人民路110号',\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'name': '欣美化妆品',\n",
       "   'location': '114.700446,23.743538',\n",
       "   'tel': '15819273238',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFKPHHFM'},\n",
       "  {'parent': [],\n",
       "   'address': '新城花园C9-1',\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'name': '鸽子情缘连锁餐厅',\n",
       "   'location': '114.700446,23.743538',\n",
       "   'tel': '13510607732',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFK9F5RP'},\n",
       "  {'parent': [],\n",
       "   'address': '阳明镇东山路23号东山明珠A栋第壹层2号商铺',\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'name': '茶趣休闲吧',\n",
       "   'location': '114.700446,23.743538',\n",
       "   'tel': '18607623435',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFK93U1S'},\n",
       "  {'parent': [],\n",
       "   'address': '龙川大道泰华城B区2楼2栋201号',\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050300',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'name': '鼎盛隆三汁焖锅',\n",
       "   'location': '114.700446,23.743538',\n",
       "   'tel': '18219336241',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFK8Y7RI'},\n",
       "  {'parent': [],\n",
       "   'address': '秋江中路',\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'name': 'B记猪扒包',\n",
       "   'location': '114.700446,23.743538',\n",
       "   'tel': '13414500000',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFK8XL72'},\n",
       "  {'parent': [],\n",
       "   'address': '香江中路',\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'name': '紫兴驴庄',\n",
       "   'location': '114.700446,23.743538',\n",
       "   'tel': '18163263712',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFK6E2B3'},\n",
       "  {'parent': [],\n",
       "   'address': [],\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'name': '森林木乐高科技教育中心',\n",
       "   'location': '114.700446,23.743538',\n",
       "   'tel': '13554778789',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFK662B0'},\n",
       "  {'parent': [],\n",
       "   'address': '隆街镇环镇街77号',\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'type': '餐饮服务;冷饮店;冷饮店',\n",
       "   'photos': [],\n",
       "   'typecode': '050700',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'name': '御贡茶',\n",
       "   'location': '114.700446,23.743538',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFK30REN'},\n",
       "  {'parent': [],\n",
       "   'address': '香江中路17号二号铺',\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'name': '小拌堂',\n",
       "   'location': '114.700446,23.743538',\n",
       "   'tel': '13622383557',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFK2QS1Z'},\n",
       "  {'parent': [],\n",
       "   'address': '福和大道幸福酒楼上侧聚约甜品',\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'name': '聚约甜品',\n",
       "   'location': '114.700446,23.743538',\n",
       "   'tel': '18316800660',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFJJ4F39'},\n",
       "  {'parent': [],\n",
       "   'address': '老隆镇人民西路丰稔巷口牛厨零食店',\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'name': '牛厨零食店',\n",
       "   'location': '114.700446,23.743538',\n",
       "   'tel': '18219336241',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFJIW3O3'},\n",
       "  {'parent': [],\n",
       "   'address': '保安东路8号',\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'name': '美宜乐',\n",
       "   'location': '114.700446,23.743538',\n",
       "   'tel': '15876764517',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFJIU4YA'},\n",
       "  {'parent': [],\n",
       "   'address': '富民街9号',\n",
       "   'distance': '132',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'type': '生活服务;生活服务场所;生活服务场所',\n",
       "   'photos': [],\n",
       "   'typecode': '070000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'name': '惠泽印章',\n",
       "   'location': '114.701720,23.743779',\n",
       "   'tel': '0762-3388936',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFH62VWO'}],\n",
       " 'status': '1',\n",
       " 'info': 'OK'}"
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 调用geo.py文件中的周边搜索 poi_around 和 geocode 地理编码模块\n",
    "from geo import poi_around,geocode\n",
    "# 调用周边搜索的函数\n",
    "河源_周边 = poi_around(key,\"114.700447,23.743538\")\n",
    "河源_周边"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 5.3 多边形搜索\n",
    "> URL:https://restapi.amap.com/v3/place/polygon?parameters"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "113.121416,23.021548\n",
      "113.264434,23.129162\n",
      "114.057868,22.543099\n",
      "113.576726,22.270715\n"
     ]
    }
   ],
   "source": [
    "# 调用geo.py文件中的多边形搜索 poi_polygon 和 geocode 地理编码模块\n",
    "from geo import poi_polygon,geocode\n",
    "# 调用地理编码的函数获取佛山的地理编码\n",
    "佛山_geo = geocode(key,\"佛山\")\n",
    "佛山_geo['geocodes'][0]['location']\n",
    "print(佛山_geo['geocodes'][0]['location'])\n",
    "\n",
    "# 调用地理编码的函数获取广州的地理编码\n",
    "广州_geo = geocode(key,\"广州\")\n",
    "广州_geo['geocodes'][0]['location']\n",
    "print(广州_geo['geocodes'][0]['location'])\n",
    "\n",
    "# 调用地理编码的函数获取深圳的地理编码\n",
    "深圳_geo = geocode(key,\"深圳\")\n",
    "深圳_geo['geocodes'][0]['location']\n",
    "print(深圳_geo['geocodes'][0]['location'])\n",
    "\n",
    "# 调用地理编码的函数获取珠海的地理编码\n",
    "珠海_geo = geocode(key,\"珠海\")\n",
    "珠海_geo['geocodes'][0]['location']\n",
    "print(珠海_geo['geocodes'][0]['location'])\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'suggestion': {'keywords': [], 'cities': []},\n",
       " 'count': '900',\n",
       " 'infocode': '10000',\n",
       " 'pois': [{'parent': [],\n",
       "   'address': '南站北路',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '广州市',\n",
       "   'type': '交通设施服务;火车站;火车站',\n",
       "   'photos': [],\n",
       "   'typecode': '150200',\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '番禺区',\n",
       "   'name': '广州南站',\n",
       "   'location': '113.269114,22.988374',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B00140VAP3'},\n",
       "  {'parent': [],\n",
       "   'address': '学府路与月亮湾大道交汇处',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '深圳市',\n",
       "   'type': '交通设施服务;火车站;火车站',\n",
       "   'photos': [],\n",
       "   'typecode': '150200',\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '南山区',\n",
       "   'name': '深圳西站',\n",
       "   'location': '113.907276,22.527291',\n",
       "   'tel': '0755-61380053',\n",
       "   'shopid': [],\n",
       "   'id': 'B02F302519'},\n",
       "  {'parent': [],\n",
       "   'address': '南国中路57号',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '佛山市',\n",
       "   'type': '交通设施服务;长途汽车站;长途汽车站',\n",
       "   'photos': [],\n",
       "   'typecode': '150400',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '顺德区',\n",
       "   'name': '顺德汽车客运总站',\n",
       "   'location': '113.25159,22.818436',\n",
       "   'tel': '0757-22339614;0757-22339637;18098188390',\n",
       "   'shopid': [],\n",
       "   'id': 'B02F50744Y'},\n",
       "  {'parent': [],\n",
       "   'address': '花地大道中51号(近地铁坑口站)',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '广州市',\n",
       "   'type': '交通设施服务;长途汽车站;长途汽车站',\n",
       "   'photos': [],\n",
       "   'typecode': '150400',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '荔湾区',\n",
       "   'name': '芳村汽车客运站',\n",
       "   'location': '113.234984,23.079895',\n",
       "   'tel': '020-81405555',\n",
       "   'shopid': [],\n",
       "   'id': 'B00140MVTW'},\n",
       "  {'parent': [],\n",
       "   'address': '英东大道附近',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '广州市',\n",
       "   'type': '交通设施服务;长途汽车站;长途汽车站',\n",
       "   'photos': [],\n",
       "   'typecode': '150400',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '南沙区',\n",
       "   'name': '南沙客运站(英东大道)',\n",
       "   'location': '113.595148,22.76919',\n",
       "   'tel': '020-34684785;020-39091251',\n",
       "   'shopid': [],\n",
       "   'id': 'B00140UEKE'},\n",
       "  {'parent': [],\n",
       "   'address': '南洲路182号',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '广州市',\n",
       "   'type': '交通设施服务;长途汽车站;长途汽车站',\n",
       "   'photos': [],\n",
       "   'typecode': '150400',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '海珠区',\n",
       "   'name': '海珠客运站',\n",
       "   'location': '113.299392,23.063172',\n",
       "   'tel': '020-84013301;020-84013330',\n",
       "   'shopid': [],\n",
       "   'id': 'B00140MX67'},\n",
       "  {'parent': [],\n",
       "   'address': '福荫路',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '广州市',\n",
       "   'type': '商务住宅;住宅区;住宅小区',\n",
       "   'photos': [],\n",
       "   'typecode': '120302',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '番禺区',\n",
       "   'name': '祈福新村',\n",
       "   'location': '113.331936,22.963228',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B00140UKAM'},\n",
       "  {'parent': [],\n",
       "   'address': '4号线',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '广州市',\n",
       "   'type': '交通设施服务;地铁站;地铁站',\n",
       "   'photos': [],\n",
       "   'typecode': '150500',\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '南沙区',\n",
       "   'name': '金洲(地铁站)',\n",
       "   'location': '113.538886,22.792178',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'BV10015821'},\n",
       "  {'parent': [],\n",
       "   'address': '(在建)22号线;(在建)2号线一期;(在建)7号线西延顺德段;2号线;7号线',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '广州市',\n",
       "   'type': '交通设施服务;地铁站;地铁站',\n",
       "   'photos': [],\n",
       "   'typecode': '150500',\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '番禺区',\n",
       "   'name': '广州南站(地铁站)',\n",
       "   'location': '113.269125,22.988980',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'BV10019725'},\n",
       "  {'parent': [],\n",
       "   'address': '钟村南站北路6号',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '广州市',\n",
       "   'type': '交通设施服务;长途汽车站;长途汽车站',\n",
       "   'photos': [],\n",
       "   'typecode': '150400',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '番禺区',\n",
       "   'name': '广州南汽车客运站',\n",
       "   'location': '113.27153,22.99189',\n",
       "   'tel': '020-39267222;020-39267219',\n",
       "   'shopid': [],\n",
       "   'id': 'B00141IECL'},\n",
       "  {'parent': [],\n",
       "   'address': '海运路1号',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '深圳市',\n",
       "   'type': '交通设施服务;港口码头;客运港',\n",
       "   'photos': [],\n",
       "   'typecode': '150301',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '南山区',\n",
       "   'name': '蛇口邮轮中心',\n",
       "   'location': '113.913411,22.468615',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFGT31RY'},\n",
       "  {'parent': [],\n",
       "   'address': '8号线;广佛线',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '广州市',\n",
       "   'type': '交通设施服务;地铁站;地铁站',\n",
       "   'photos': [],\n",
       "   'typecode': '150500',\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '海珠区',\n",
       "   'name': '沙园(地铁站)',\n",
       "   'location': '113.260584,23.088625',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'BV10018365'},\n",
       "  {'parent': [],\n",
       "   'address': '1号线;6号线',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '广州市',\n",
       "   'type': '交通设施服务;地铁站;地铁站',\n",
       "   'photos': [],\n",
       "   'typecode': '150500',\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '荔湾区',\n",
       "   'name': '黄沙(地铁站)',\n",
       "   'location': '113.239856,23.110524',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'BV10015729'},\n",
       "  {'parent': [],\n",
       "   'address': '庆沙路88',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '广州市',\n",
       "   'type': '交通设施服务;火车站;火车站',\n",
       "   'photos': [],\n",
       "   'typecode': '150200',\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '南沙区',\n",
       "   'name': '庆盛站',\n",
       "   'location': '113.491531,22.866987',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B00141J3XU'},\n",
       "  {'parent': [],\n",
       "   'address': '商贸大道南二路2号',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '广州市',\n",
       "   'type': '交通设施服务;港口码头;客运港',\n",
       "   'photos': [],\n",
       "   'typecode': '150301',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '南沙区',\n",
       "   'name': '南沙客运港',\n",
       "   'location': '113.611843,22.770044',\n",
       "   'tel': '020-84688716;020-84688963',\n",
       "   'shopid': [],\n",
       "   'id': 'B00140UFX5'},\n",
       "  {'parent': 'B0FFG9IQV3',\n",
       "   'address': '广州大道南249号',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '广州市',\n",
       "   'type': '商务住宅;住宅区;住宅小区',\n",
       "   'photos': [],\n",
       "   'typecode': '120302',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '202',\n",
       "   'adname': '海珠区',\n",
       "   'name': '合生广场',\n",
       "   'location': '113.313833,23.08512',\n",
       "   'tel': '020-89621615;020-34329590;020-62381888',\n",
       "   'shopid': [],\n",
       "   'id': 'B00141JIFD'},\n",
       "  {'parent': [],\n",
       "   'address': '十三行路1号',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '广州市',\n",
       "   'type': '商务住宅;楼宇;商务写字楼',\n",
       "   'photos': [],\n",
       "   'typecode': '120201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '荔湾区',\n",
       "   'name': '新中国大厦',\n",
       "   'location': '113.253098,23.110603',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B00140W2CG'},\n",
       "  {'parent': [],\n",
       "   'address': '宝民一路171号',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '深圳市',\n",
       "   'type': '交通设施服务;长途汽车站;长途汽车站',\n",
       "   'photos': [],\n",
       "   'typecode': '150400',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '宝安区',\n",
       "   'name': '宝安汽车站',\n",
       "   'location': '113.899168,22.563713',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B02F3025B8'},\n",
       "  {'parent': [],\n",
       "   'address': '南村镇金江大道中段',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '广州市',\n",
       "   'type': '交通设施服务;交通服务相关;交通服务相关',\n",
       "   'photos': [],\n",
       "   'typecode': '150000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '番禺区',\n",
       "   'name': '南村车站',\n",
       "   'location': '113.38521,23.007565',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B001409517'},\n",
       "  {'parent': [],\n",
       "   'address': '广深路西乡段105号',\n",
       "   'distance': [],\n",
       "   'biz_ext': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '深圳市',\n",
       "   'type': '交通设施服务;长途汽车站;长途汽车站',\n",
       "   'photos': [],\n",
       "   'typecode': '150400',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '宝安区',\n",
       "   'name': '西乡汽车站',\n",
       "   'location': '113.882773,22.577403',\n",
       "   'tel': '0755-27956763',\n",
       "   'shopid': [],\n",
       "   'id': 'B02F302901'}],\n",
       " 'status': '1',\n",
       " 'info': 'OK'}"
      ]
     },
     "execution_count": 17,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 调用多边形搜索的函数\n",
    "广佛深珠_ = poi_polygon(key,\"113.121416,23.021548|113.264434,23.129162|114.057868,22.543099|113.576726,22.270715\")\n",
    "广佛深珠_"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 5.4 ID查询\n",
    "> URL:https://restapi.amap.com/v3/place/detail?parameters "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'count': '1',\n",
       " 'infocode': '10000',\n",
       " 'pois': [{'parent': [],\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': '3.5'},\n",
       "   'recommend': '0',\n",
       "   'type': '交通设施服务;火车站;火车站',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/e11c63f744659d152bb3d7057512a5ac'},\n",
       "    {'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/072b43217a3aba263c5bae95bf708b1b'},\n",
       "    {'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/5787639814453cc4caf6b0f10bd37b53'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413328111',\n",
       "   'typecode': '150200',\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'deep_info': {'deepsrc': []},\n",
       "   'citycode': '020',\n",
       "   'adname': '番禺区',\n",
       "   'indoor_src': '高德地图',\n",
       "   'children': [],\n",
       "   'tel': [],\n",
       "   'id': 'B00140VAP3',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': '113.271138,22.989824',\n",
       "   'indoor_map': '1',\n",
       "   'email': [],\n",
       "   'timestamp': '2020-11-17 10:02:30',\n",
       "   'website': [],\n",
       "   'address': '南站北路',\n",
       "   'adcode': '440113',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': [],\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': [],\n",
       "   'indoor_data': {'cmsid': 'TY000134_B00140VAP3',\n",
       "    'truefloor': [],\n",
       "    'cpid': 'B00140VAP3',\n",
       "    'floor': []},\n",
       "   'childtype': [],\n",
       "   'rich_content': [],\n",
       "   'exit_location': [],\n",
       "   'name': '广州南站',\n",
       "   'location': '113.269114,22.988374',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': 'F49F013043_127604',\n",
       "   'groupbuy_num': '0'}],\n",
       " 'status': '1',\n",
       " 'info': 'OK'}"
      ]
     },
     "execution_count": 18,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 调用geo.py文件中的ID查询 poi_id 模块\n",
    "from geo import poi_id\n",
    "# 调用ID查询的函数\n",
    "ID_ = poi_id(key,\"B00140VAP3\")\n",
    "ID_"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 6、IP定位\n",
    "* P定位是一个简单的HTTP接口，根据用户输入的IP地址，能够快速的帮用户定位IP的所在位置。\n",
    "* 适用场景:希望能够将IP信息转换为地理位置信息。\n",
    "> URL:https://restapi.amap.com/v3/ip?parameters"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'province': '北京市',\n",
       " 'city': '北京市',\n",
       " 'adcode': '110000',\n",
       " 'rectangle': '116.0119343,39.66127144;116.7829835,40.2164962'}"
      ]
     },
     "execution_count": 19,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 调用IP定位 ip 模块\n",
    "from geo import ip\n",
    "# 调用ip定位的函数\n",
    "IP_ = ip(key,\"114.247.50.2\")\n",
    "IP_"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 7、静态地图\n",
    "* 静态地图服务通过返回一张地图图片响应HTTP请求，使用户能够将高德地图以图片形式嵌入自己的网页中。用户可以指定请求的地图位置、图片大小、以及在地图上添加覆盖物，如标签、标注、折线、多边形。\n",
    "\n",
    "* 功能介绍: 1.添加默认标签 2.添加自定义标签 3.添加标注 4.添加折线 5.添加多边形 6.调用高清图\n",
    "> URL:https://restapi.amap.com/v3/staticmap?parameters"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'count': '1',\n",
       " 'geocodes': [{'formatted_address': '广东省河源市',\n",
       "   'country': '中国',\n",
       "   'province': '广东省',\n",
       "   'citycode': '0762',\n",
       "   'city': '河源市',\n",
       "   'district': [],\n",
       "   'township': [],\n",
       "   'neighborhood': {'name': [], 'type': []},\n",
       "   'building': {'name': [], 'type': []},\n",
       "   'adcode': '441600',\n",
       "   'street': [],\n",
       "   'number': [],\n",
       "   'location': '114.700447,23.743538',\n",
       "   'level': '市'}]}"
      ]
     },
     "execution_count": 20,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 调用地理编码的函数获取河源的地理编码\n",
    "from geo import geocode\n",
    "河源_geo = geocode(key,\"广东省河源市\") \n",
    "河源_geo"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'https://restapi.amap.com/v3/staticmap?parameters&key=d7c4f8b2b484585de0c319f9b8ca4652&location=114.700447%2C23.743538&zoom=15&size=400%2A400&scale=1&traffic=0'"
      ]
     },
     "execution_count": 21,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 调用geo.py文件中的静态地图 staticmap 和 geocode 地理编码模块\n",
    "from geo import staticmap,geocode\n",
    "# 调用静态地图函数\n",
    "map_ = staticmap(key,\"114.700447,23.743538\")\n",
    "map_"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 8、坐标转换\n",
    "* 坐标转换是一类简单的HTTP接口，能够将用户输入的非高德坐标（GPS坐标、mapbar坐标、baidu坐标）转换成高德坐标。\n",
    "> URL:https://restapi.amap.com/v3/assistant/coordinate/convert?parameters"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'count': '1',\n",
       " 'geocodes': [{'formatted_address': '广东省河源市',\n",
       "   'country': '中国',\n",
       "   'province': '广东省',\n",
       "   'citycode': '0762',\n",
       "   'city': '河源市',\n",
       "   'district': [],\n",
       "   'township': [],\n",
       "   'neighborhood': {'name': [], 'type': []},\n",
       "   'building': {'name': [], 'type': []},\n",
       "   'adcode': '441600',\n",
       "   'street': [],\n",
       "   'number': [],\n",
       "   'location': '114.700447,23.743538',\n",
       "   'level': '市'}]}"
      ]
     },
     "execution_count": 22,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 调用地理编码的函数获取河源的地理编码\n",
    "from geo import geocode\n",
    "河源_geo = geocode(key,\"广东省河源市\") \n",
    "河源_geo"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'ok',\n",
       " 'infocode': '10000',\n",
       " 'locations': '114.700447,23.743538'}"
      ]
     },
     "execution_count": 23,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 调用geo.py文件中的坐标转换 convert 和 geocode 地理编码模块\n",
    "from geo import convert,geocode\n",
    "# 调用坐标转换的函数\n",
    "河源_坐标转换 = convert(key,\"114.700447,23.743538\")\n",
    "河源_坐标转换"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 9、天气查询\n",
    "* 天气查询是一个简单的HTTP接口，根据用户输入的adcode，查询目标区域当前/未来的天气情况。\n",
    "> URL:https://restapi.amap.com/v3/weather/weatherInfo?parameters"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'count': '1',\n",
       " 'geocodes': [{'formatted_address': '广东省河源市',\n",
       "   'country': '中国',\n",
       "   'province': '广东省',\n",
       "   'citycode': '0762',\n",
       "   'city': '河源市',\n",
       "   'district': [],\n",
       "   'township': [],\n",
       "   'neighborhood': {'name': [], 'type': []},\n",
       "   'building': {'name': [], 'type': []},\n",
       "   'adcode': '441600',\n",
       "   'street': [],\n",
       "   'number': [],\n",
       "   'location': '114.700447,23.743538',\n",
       "   'level': '市'}]}"
      ]
     },
     "execution_count": 24,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 调用地理编码的函数获取河源的地理编码\n",
    "from geo import geocode\n",
    "河源_geo = geocode(key,\"广东省河源市\") \n",
    "河源_geo"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'count': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'forecasts': [{'city': '河源市',\n",
       "   'adcode': '441600',\n",
       "   'province': '广东',\n",
       "   'reporttime': '2020-11-17 16:52:40',\n",
       "   'casts': [{'date': '2020-11-17',\n",
       "     'week': '2',\n",
       "     'dayweather': '多云',\n",
       "     'nightweather': '多云',\n",
       "     'daytemp': '28',\n",
       "     'nighttemp': '21',\n",
       "     'daywind': '北',\n",
       "     'nightwind': '北',\n",
       "     'daypower': '≤3',\n",
       "     'nightpower': '≤3'},\n",
       "    {'date': '2020-11-18',\n",
       "     'week': '3',\n",
       "     'dayweather': '多云',\n",
       "     'nightweather': '阴',\n",
       "     'daytemp': '28',\n",
       "     'nighttemp': '22',\n",
       "     'daywind': '北',\n",
       "     'nightwind': '北',\n",
       "     'daypower': '≤3',\n",
       "     'nightpower': '≤3'},\n",
       "    {'date': '2020-11-19',\n",
       "     'week': '4',\n",
       "     'dayweather': '阵雨',\n",
       "     'nightweather': '阴',\n",
       "     'daytemp': '27',\n",
       "     'nighttemp': '21',\n",
       "     'daywind': '北',\n",
       "     'nightwind': '北',\n",
       "     'daypower': '≤3',\n",
       "     'nightpower': '≤3'},\n",
       "    {'date': '2020-11-20',\n",
       "     'week': '5',\n",
       "     'dayweather': '阴',\n",
       "     'nightweather': '阵雨',\n",
       "     'daytemp': '29',\n",
       "     'nighttemp': '22',\n",
       "     'daywind': '北',\n",
       "     'nightwind': '北',\n",
       "     'daypower': '≤3',\n",
       "     'nightpower': '≤3'}]}]}"
      ]
     },
     "execution_count": 25,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 调用geo.py文件中的天气查询 weather的模块\n",
    "from geo import weather\n",
    "# 调用weather函数\n",
    "河源_天气 = weather(key,441600)\n",
    "河源_天气"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 10、输入提示\n",
    "* 输入提示是一类简单的HTTP接口，提供根据用户输入的关键词查询返回建议列表。\n",
    "> URL:https://restapi.amap.com/v3/assistant/inputtips?parameters"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'count': '10',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'tips': [{'id': 'B0FFF9V10D',\n",
       "   'name': '万隆城',\n",
       "   'district': '广东省河源市源城区',\n",
       "   'adcode': '441602',\n",
       "   'location': '114.70619,23.75658',\n",
       "   'address': '中山大道218号',\n",
       "   'typecode': '060101',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFIR6KZ4',\n",
       "   'name': '河源万隆城铂金度假酒店',\n",
       "   'district': '广东省河源市源城区',\n",
       "   'adcode': '441602',\n",
       "   'location': '114.706247,23.755352',\n",
       "   'address': '中山大道218号丽枫酒店24层',\n",
       "   'typecode': '100100',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFG82WQ9',\n",
       "   'name': '沃尔玛(万隆城店)',\n",
       "   'district': '广东省河源市源城区',\n",
       "   'adcode': '441602',\n",
       "   'location': '114.706001,23.755754',\n",
       "   'address': '中山大道218万隆时代广场B1层',\n",
       "   'typecode': '060402',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFGY62PN',\n",
       "   'name': '丽枫酒店(河源万隆城店)',\n",
       "   'district': '广东省河源市源城区',\n",
       "   'adcode': '441602',\n",
       "   'location': '114.706075,23.755522',\n",
       "   'address': '中山大道218号万隆商场4号门',\n",
       "   'typecode': '100103',\n",
       "   'city': []},\n",
       "  {'id': 'BV11277173',\n",
       "   'name': '万隆城(公交站)',\n",
       "   'district': '广东省河源市源城区',\n",
       "   'adcode': '441602',\n",
       "   'location': '114.705307,23.756002',\n",
       "   'address': '102路;113路;118路;16路;4路',\n",
       "   'typecode': '150700',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFH3LZ40',\n",
       "   'name': '万隆城停车场',\n",
       "   'district': '广东省河源市源城区',\n",
       "   'adcode': '441602',\n",
       "   'location': '114.706433,23.757724',\n",
       "   'address': '建星街与建设大道东交叉口西100米',\n",
       "   'typecode': '150904',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFH1DYUX',\n",
       "   'name': '万隆城(西门)',\n",
       "   'district': '广东省河源市源城区',\n",
       "   'adcode': '441602',\n",
       "   'location': '114.706423,23.757549',\n",
       "   'address': '建设大道东108附近',\n",
       "   'typecode': '991400',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFH39OW3',\n",
       "   'name': 'ONLY(万隆城店)',\n",
       "   'district': '广东省河源市源城区',\n",
       "   'adcode': '441602',\n",
       "   'location': '114.705984,23.756629',\n",
       "   'address': '建设大道万隆城一楼',\n",
       "   'typecode': '061101',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFJILIQX',\n",
       "   'name': '万隆城店',\n",
       "   'district': '广东省河源市源城区',\n",
       "   'adcode': '441602',\n",
       "   'location': '114.714836,23.767097',\n",
       "   'address': '建兴街蜗居公寓',\n",
       "   'typecode': '060000',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFGZ61FR',\n",
       "   'name': 'FAIRWHALE(万隆城店)',\n",
       "   'district': '广东省河源市源城区',\n",
       "   'adcode': '441602',\n",
       "   'location': '114.705988,23.756636',\n",
       "   'address': '建设大道与中山大道交汇处万隆城一楼',\n",
       "   'typecode': '060000',\n",
       "   'city': []}]}"
      ]
     },
     "execution_count": 26,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 调用geo.py文件中的输入提示 tips 模块\n",
    "from geo import tips\n",
    "# 调用输入提示函数\n",
    "输入提示_ = tips(key,\"河源万隆城\")\n",
    "输入提示_"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 11、交通态势\n",
    "* 交通态势是一类简单的HTTP接口，提供根据用户输入的内容能够返回希望查询的交通态势情况。\n",
    "> 目前支持城市：北京，上海，广州，深圳，宁波，武汉，重庆，成都，沈阳，南京，杭州，长春，常州，大连，东莞，福州，青岛，石家庄，天津，太原，西安，无锡，厦门，珠海，长沙，苏州，金华，佛山，济南，泉州，嘉兴，西宁，惠州，温州，中山，合肥，乌鲁木齐，台州，绍兴，昆明。"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 11.1 矩形交通态势\n",
    "> URL:https://restapi.amap.com/v3/traffic/status/rectangle?parameters"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "113.121416,23.021548\n",
      "113.264434,23.129162\n",
      "114.057868,22.543099\n",
      "113.576726,22.270715\n"
     ]
    }
   ],
   "source": [
    "# 调用矩形区域交通态势 squareness 和 地理编码 geocode 模块\n",
    "from geo import squareness,geocode\n",
    "# 调用地理编码的函数获取佛山的地理编码\n",
    "佛山_geo = geocode(key,\"佛山\")\n",
    "佛山_geo['geocodes'][0]['location']\n",
    "print(佛山_geo['geocodes'][0]['location'])\n",
    "\n",
    "# 调用地理编码的函数获取广州的地理编码\n",
    "广州_geo = geocode(key,\"广州\")\n",
    "广州_geo['geocodes'][0]['location']\n",
    "print(广州_geo['geocodes'][0]['location'])\n",
    "\n",
    "# 调用地理编码的函数获取深圳的地理编码\n",
    "深圳_geo = geocode(key,\"深圳\")\n",
    "深圳_geo['geocodes'][0]['location']\n",
    "print(深圳_geo['geocodes'][0]['location'])\n",
    "\n",
    "# 调用地理编码的函数获取珠海的地理编码\n",
    "珠海_geo = geocode(key,\"珠海\")\n",
    "珠海_geo['geocodes'][0]['location']\n",
    "print(珠海_geo['geocodes'][0]['location'])\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'info': 'INSUFFICIENT_PRIVILEGES',\n",
       " 'infocode': '10012',\n",
       " 'status': '0',\n",
       " 'sec_code_debug': 'd41d8cd98f00b204e9800998ecf8427e',\n",
       " 'key': 'd7c4f8b2b484585de0c319f9b8ca4652',\n",
       " 'sec_code': 'd41d8cd98f00b204e9800998ecf8427e'}"
      ]
     },
     "execution_count": 28,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "矩形_交通态势 = squareness(key,\"113.121416,23.021548|113.264434,23.129162|114.057868,22.543099|113.576726,22.270715\")\n",
    "矩形_交通态势"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 11.2 圆形交通态势\n",
    "> URL:https://restapi.amap.com/v3/traffic/status/circle?parameters"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 11.3 指定线路交通态势\n",
    "> URL:https://restapi.amap.com/v3/traffic/status/road?parameters"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 说明：交通态势接口计划将于2020年12月31日下线，目前不再对新用户开放。"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.3"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": false,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {
    "height": "calc(100% - 180px)",
    "left": "10px",
    "top": "150px",
    "width": "165px"
   },
   "toc_section_display": true,
   "toc_window_display": false
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
